/* ==========================================================================
   STYLE.CSS — base mobile-first + componentes
   Paleta: blanco roto, negro, gris grafito, gris cemento. Un solo acento
   (--mark, naranja JCM #fb923c) usado en muy pocos puntos.
   Tipografía: DM Sans (títulos) + Inter (texto).
   Grid: 4 col (mobile) / 8 col (tablet) / 12 col (desktop) -> responsive.css
   ========================================================================== */

:root {
  --paper: #F1F1EE;      /* blanco roto */
  --soft: #E6E6E2;       /* cemento claro */
  --cement: #B7B7B1;
  --cement-d: #8A8A85;   /* gris cemento */
  --graphite: #2D2F31;   /* gris grafito */
  --ink: #0a0a0a;        /* negro JCM */
  --mark: #fb923c;       /* acento: naranja corporativo JCM */
  --muted: #55575A;
  --muted-d: #ABACA8;
  --line: rgba(0,0,0,.16);
  --line-d: rgba(241,241,238,.22);

  --f-display: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --pad: clamp(20px, 4.2vw, 64px);
  --gap: 16px;
  --cols: 4;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
html.is-locked { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--f-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cover :focus-visible, .section--dark :focus-visible, .footer :focus-visible,
.header:not(.is-solid) :focus-visible, .cta :focus-visible { outline-color: var(--mark); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: var(--paper); padding: 12px 16px; transition: top .2s; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Grid compartido (4 / 8 / 12 columnas vía --cols) ---------- */
.about, .section__top, .method, .profile, .cta__grid, .why, .casos, .footer__grid {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap);
}
.about > *, .section__top > *, .method > *, .profile > *, .cta__grid > *, .why > *, .casos > *, .footer__grid > * { grid-column: 1 / -1; min-width: 0; }

/* ---------- Tipografía ---------- */
.h2 {
  font: 500 clamp(2rem, 6.2vw, 4.5rem)/1 var(--f-display); letter-spacing: -.03em; text-transform: uppercase;
  overflow-wrap: break-word; text-wrap: balance;
}
.h2--xl { font-size: clamp(2.25rem, 8vw, 7rem); line-height: .96; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.section--dark .lead, .cta .lead { color: var(--muted-d); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.6rem;
  font: 600 .8125rem/1.15 var(--f-text); letter-spacing: .08em; text-transform: uppercase; text-align: center;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--graphite); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border-color: rgba(241,241,238,.6); color: var(--paper); }
.btn--outline-light:hover { background: rgba(241,241,238,.14); border-color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 1.1rem; font-size: .75rem; }
.btn--lg { min-height: 62px; padding: 0 2rem; }
.btn--block { width: 100%; }

.link {
  display: inline-block; font-weight: 500; padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

.round { width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.round:hover { background: var(--ink); color: var(--paper); }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- Medios ---------- */
.media { position: relative; overflow: hidden; background: var(--soft); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.demo-on .media.is-demo::after {
  content: "Imagen demo"; position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 4px 8px;
  font: 500 .6875rem/1 var(--f-text); color: #fff; background: rgba(0,0,0,.6); pointer-events: none;
}

.chip { display: inline-block; padding: 6px 10px; font: 600 .75rem/1 var(--f-text); background: var(--paper); color: var(--ink); }
.chip--live { background: var(--mark); }
.chip--demo { background: var(--ink); color: var(--paper); letter-spacing: .06em; }

.demo-only { display: none; }
.demo-on .demo-only { display: block; }

/* ---------- Barra demo ---------- */
.demo-bar { background: var(--mark); color: var(--ink); padding: 8px var(--pad); text-align: center; font: 500 .75rem/1.4 var(--f-text); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h); color: var(--paper);
  border-bottom: 1px solid transparent; transition: background-color .3s, color .3s, border-color .3s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { position: relative; z-index: 2; display: flex; align-items: center; }
.logo { height: 30px; width: auto; max-width: 190px; display: block; }
.logo--oscuro { display: none; }
.header.is-solid { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
.header.is-solid .logo--claro { display: none; }
.header.is-solid .logo--oscuro { display: block; }
.header.is-menu { background: transparent; color: var(--paper); border-bottom-color: transparent; }
.header.is-menu .logo--claro { display: block; }
.header.is-menu .logo--oscuro { display: none; }
.footer__brand .logo { height: 36px; max-width: 220px; }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--mark); transform: scaleX(0); transform-origin: 0 50%; }

.menu-btn { position: relative; z-index: 2; width: 44px; height: 44px; margin-right: -8px; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Menú mobile: pantalla completa */
.nav {
  position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 32px;
  padding: calc(var(--header-h) + 16px) var(--pad) 40px; background: var(--ink); color: var(--paper);
  visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s;
}
.nav.is-open { visibility: visible; opacity: 1; }
.nav__list { list-style: none; display: grid; }
.nav__list a { display: block; padding: 12px 0; font: 500 clamp(1.75rem, 8vw, 2.5rem)/1.1 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; border-bottom: 1px solid var(--line-d); }
.nav .nav__cta { align-self: stretch; min-height: 56px; background: var(--paper); color: var(--ink); }
.nav .nav__cta:hover { background: #fff; }

/* ==========================================================================
   01 — PORTADA
   ========================================================================== */
.cover {
  position: relative; display: flex; overflow: hidden; color: var(--paper); background: #000;
  height: calc(100svh - var(--demo-h, 0px)); min-height: 580px; margin-top: calc(var(--header-h) * -1);
}
.cover__media { position: absolute; inset: 0; overflow: hidden; }
.cover__img {
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 62% 58%;
  animation: coverIn 2s var(--ease) both;
}
.cover__video {
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none;
}
.cover__video.is-on { opacity: 1; }
.cover__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,.08) 40%, rgba(0,0,0,.72) 100%), linear-gradient(90deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 62%); }
.cover__inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 36px; padding-bottom: 64px; }
.cover__title {
  font: 500 clamp(2rem, min(11vw, 14vh), 8.5rem)/.92 var(--f-display); letter-spacing: -.04em; text-transform: uppercase;
}
.cover__title .line { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.cover__title .line > span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.cover__title .line:nth-child(2) > span { animation-delay: .12s; }
.cover__title .line:nth-child(3) > span { animation-delay: .24s; }
.cover__sub { margin-top: 22px; font: 500 clamp(1rem, 1.6vw, 1.25rem)/1.3 var(--f-text); opacity: 0; animation: fade .9s .7s forwards; }
.cover__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; opacity: 0; animation: fade .9s .85s forwards; }
.cover__actions .btn { flex: 1 1 auto; }

.cover__scroll { display: inline-flex; align-items: center; gap: 14px; font-size: .8125rem; opacity: 0; animation: fade .9s 1.2s forwards; }
.cover__scroll i { position: relative; width: 48px; height: 1px; background: rgba(241,241,238,.4); overflow: hidden; }
.cover__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: translateX(-100%); animation: cue 2.2s ease-in-out 1.6s 3; }

.mark { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(241,241,238,.75); opacity: 0; animation: fade 1s 1.1s forwards; pointer-events: none; }
.mark--tl { top: calc(var(--header-h) + 8px); left: var(--pad); border-width: 1px 0 0 1px; }
.mark--tr { top: calc(var(--header-h) + 8px); right: var(--pad); border-width: 1px 1px 0 0; }
.mark--bl { bottom: 22px; left: var(--pad); border-width: 0 0 1px 1px; }
.mark--br { bottom: 22px; right: var(--pad); border-width: 0 1px 1px 0; }

@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes coverIn { from { transform: scale(1.06); } to { transform: none; } }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ==========================================================================
   SECCIONES — base
   ========================================================================== */
.section { padding-block: clamp(64px, 9vw, 136px); background: var(--paper); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: var(--paper); }

.sheet-head {
  display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: clamp(36px, 6vw, 84px);
  border-bottom: 1px solid var(--line); font: 500 .8125rem/1.2 var(--f-text); color: var(--muted);
}
.section--dark .sheet-head, .footer .sheet-head { border-bottom-color: var(--line-d); color: var(--muted-d); }
.section__top { row-gap: 20px; margin-bottom: clamp(36px, 6vw, 84px); }
.section__top--ctrl { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__top--ctrl .lead { margin-top: 20px; }

/* ==========================================================================
   02 — QUIÉNES SOMOS
   ========================================================================== */
.about { row-gap: 40px; }
.about__media { aspect-ratio: 1 / 1; }
.about__body { display: flex; flex-direction: column; gap: 28px; }
.about__lead { font: 500 clamp(1.25rem, 2.2vw, 1.75rem)/1.3 var(--f-display); letter-spacing: -.01em; max-width: 24em; text-wrap: balance; }
.about__text { color: var(--muted); max-width: 36em; }

.pillars__t { font-weight: 600; font-size: .9375rem; margin-bottom: 10px; }
.pillars ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pillars li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.stat dt { font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.stat__v { display: inline-block; font: 500 clamp(1.5rem, 3.4vw, 2.75rem)/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__v.is-ph { color: #66675F; border-bottom: 1px dashed #66675F; padding-bottom: 4px; }
.stats__note { font-size: .8125rem; color: var(--muted); margin-top: -12px; }

/* ==========================================================================
   03 — QUÉ HACEMOS
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 44px var(--gap); }
.svc__media { aspect-ratio: 4 / 3; }
.svc__media img { transition: transform 1s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__body { padding-top: 18px; display: grid; gap: 10px; justify-items: start; }
.svc__n { font-size: .8125rem; color: var(--muted); }
.svc__t { font: 500 clamp(1.375rem, 2.2vw, 1.75rem)/1.05 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; }
.svc__t::after { content: ""; display: block; height: 2px; width: 0; margin-top: 12px; background: var(--mark); transition: width .45s var(--ease); }
.svc:hover .svc__t::after, .svc:focus-within .svc__t::after { width: 44px; }
.svc__body > p:not(.svc__n) { color: var(--muted); max-width: 26em; }
.svc .link { margin-top: 6px; font-size: .9375rem; }

/* ==========================================================================
   04 — OBRAS DESTACADAS (slider horizontal)
   ========================================================================== */
.slider {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab;
}
.slider::-webkit-scrollbar { display: none; }
.slider.is-drag { cursor: grabbing; scroll-snap-type: none; }
.slider.is-drag a { pointer-events: none; }
.slider__track { list-style: none; display: flex; gap: clamp(14px, 2vw, 32px); width: max-content; padding-inline: var(--pad); align-items: flex-start; }
.pcard { flex: 0 0 min(80vw, 340px); scroll-snap-align: start; }
.pcard__a { display: block; }
.pcard__media { aspect-ratio: 4 / 5; }
.pcard__media img { transition: transform 1.1s var(--ease); }
.pcard__a:hover .pcard__media img { transform: scale(1.035); }
.pcard__media .chip { position: absolute; top: 12px; z-index: 2; }
.pcard__media .chip--status { left: 12px; }
.pcard__media .chip--demo { right: 12px; }
.pcard__t { margin-top: 18px; font: 500 clamp(1.375rem, 2vw, 1.75rem)/1.05 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; }
.pcard__loc { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.pcard__meta { margin-top: 16px; border-top: 1px solid var(--line); }
.pcard__meta div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.pcard__meta dt { color: var(--muted); }
.pcard__meta dd { text-align: right; font-weight: 500; }
.pcard__cta { margin-top: 16px; font-size: .9375rem; }
.slider__bar { position: relative; height: 2px; margin-top: 36px; background: var(--line); overflow: hidden; }
.slider__bar span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(.2); transform-origin: 0 50%; }

/* ==========================================================================
   05 — CASOS DE OBRA (índice)
   ========================================================================== */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 28px; margin-bottom: clamp(32px, 5vw, 64px); font-size: .9375rem; color: var(--muted-d); }
.legend b { color: var(--mark); font-weight: 500; margin-right: .35em; }

.case-list { list-style: none; border-top: 1px solid var(--line-d); }
.case-row {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; row-gap: 6px; width: 100%; padding: 20px 0; text-align: left;
  border-bottom: 1px solid var(--line-d); color: var(--paper); transition: background-color .25s, padding .35s var(--ease);
}
.case-row__thumb { grid-row: 1 / span 3; width: 64px; aspect-ratio: 4 / 5; background: var(--graphite); }
.case-row__n { display: none; }
.case-row__t { font: 500 clamp(1.5rem, 3.2vw, 2.5rem)/1.05 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; }
.case-row__main { display: grid; gap: 6px; }
.case-row__d { color: var(--muted-d); font-size: .9375rem; line-height: 1.45; max-width: 34em; }
.case-row__loc { color: var(--muted-d); font-size: .875rem; }
.case-row__go { justify-self: start; font-size: .9375rem; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.case-row:hover, .case-row:focus-visible, .case-row.is-active { background: rgba(241,241,238,.05); }
.case-preview { display: none; }

/* ==========================================================================
   06 — METODOLOGÍA
   ========================================================================== */
.method { row-gap: 44px; }
.method__intro { display: grid; gap: 20px; justify-items: start; align-content: start; }
.method__list { --p: 0; list-style: none; position: relative; }
.method__list::before, .method__list::after { content: ""; position: absolute; left: 19px; top: 20px; width: 1px; }
.method__list::before { bottom: 20px; background: var(--line); }
.method__list::after { height: calc((100% - 40px) * var(--p)); background: var(--ink); }
.mstep { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding-bottom: clamp(28px, 4vw, 56px); }
.mstep:last-child { padding-bottom: 0; }
.mstep__n {
  position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--cement-d);
  background: var(--paper); color: var(--muted); font: 500 .8125rem/1 var(--f-display); transition: background-color .35s, color .35s, border-color .35s;
}
.mstep.is-on .mstep__n { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.mstep h3 { margin: 4px 0 8px; font: 500 clamp(1.5rem, 3.4vw, 2.75rem)/1.02 var(--f-display); letter-spacing: -.025em; text-transform: uppercase; }
.mstep p { color: var(--muted); max-width: 30em; }

/* ==========================================================================
   07 — CAPACIDADES
   ========================================================================== */
.caps { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.cap { display: grid; grid-template-columns: 32px 1fr; column-gap: 18px; row-gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cap svg { grid-row: 1 / span 2; width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; }
.cap h3 { font: 500 1.25rem/1.15 var(--f-display); letter-spacing: -.01em; }
.cap p { color: var(--muted); font-size: .9375rem; }

/* ==========================================================================
   08 — PROCESO DE TRABAJO (selector de perfil)
   ========================================================================== */
.profile { row-gap: 32px; }
.profile__intro { display: grid; gap: 20px; justify-items: start; }
.profile__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: 2px var(--pad); }
.profile__tabs::-webkit-scrollbar { display: none; }
.profile__tabs button {
  flex: 0 0 auto; min-height: 46px; padding: 0 18px; border: 1px solid var(--cement-d); font: 500 .9375rem/1 var(--f-text);
  transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap;
}
.profile__tabs button:hover { border-color: var(--ink); }
.profile__tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.panel h3 { font: 500 clamp(1.5rem, 3.4vw, 2.75rem)/1.06 var(--f-display); letter-spacing: -.025em; max-width: 18em; text-wrap: balance; }
.panel > p { margin-top: 16px; color: var(--muted); max-width: 36em; }
.panel__t { margin-top: 32px; font-weight: 600; color: var(--ink) !important; }
.panel ul { list-style: none; margin: 10px 0 32px; border-top: 1px solid var(--line); max-width: 36em; }
.panel li { padding: 13px 0; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   09 — POR QUÉ TRABAJAR CON NOSOTROS
   ========================================================================== */
.why { row-gap: 40px; }
.why__list { list-style: none; border-top: 1px solid var(--ink); }
.why__list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.why__list h3 { font: 500 clamp(1.25rem, 2vw, 1.625rem)/1.15 var(--f-display); letter-spacing: -.015em; margin-bottom: 8px; }
.why__list p { color: var(--muted); max-width: 30em; }

.refs { margin-top: clamp(48px, 7vw, 96px); display: grid; gap: 20px; }
.ref { padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.ref--empty { border-style: dashed; border-color: var(--cement-d); background: transparent; color: var(--muted); }
.ref blockquote { margin: 0 0 16px; font: 500 clamp(1.25rem, 2vw, 1.625rem)/1.3 var(--f-display); letter-spacing: -.01em; }
.ref cite { font-style: normal; font-size: .875rem; color: var(--muted); }

/* ==========================================================================
   10 — CTA / CONTACTO
   ========================================================================== */
.cta__grid { row-gap: 56px; }
.cta__main { display: grid; gap: 24px; justify-items: start; align-content: start; }
.cta__t { margin-top: 12px; font-weight: 600; }
.cta__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cta__list li { padding: 8px 14px; border: 1px solid var(--line-d); font-size: .9375rem; }
.cta .btn { margin-top: 12px; max-width: 100%; }
.cta__contact { list-style: none; display: grid; gap: 10px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line-d); width: 100%; }
.cta__contact li { display: flex; gap: 16px; }
.cta__contact span { flex: 0 0 84px; color: var(--muted-d); }
.cta__contact a { border-bottom: 1px solid currentColor; }

.form { display: grid; gap: 8px; align-content: start; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-d); }
.form__t { font: 500 1.5rem/1.15 var(--f-display); letter-spacing: -.015em; }
.form__hint { color: var(--muted-d); font-size: .9375rem; margin-bottom: 10px; }
.form label { margin-top: 10px; font-size: .875rem; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px; font-size: 1rem; line-height: 1.3; color: var(--paper); background: transparent;
  border: 1px solid var(--line-d); border-radius: 0; appearance: none; -webkit-appearance: none;
}
.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.form select option { color: #000; }
.form input::placeholder, .form textarea::placeholder { color: rgba(241,241,238,.45); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--mark); outline-offset: 0; border-color: var(--mark); }
.form textarea { resize: vertical; min-height: 110px; }
.form .btn { margin-top: 20px; }

/* ==========================================================================
   11 — WHATSAPP / PIE
   ========================================================================== */
.footer { background: var(--graphite); color: var(--paper); padding-block: clamp(56px, 8vw, 112px) 32px; }
.footer__grid { row-gap: 40px; }
.footer__brand { display: grid; gap: 20px; justify-items: start; }
.footer__brand p { color: var(--muted-d); max-width: 26em; font-size: .9375rem; }
.footer__t { font-weight: 600; margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 4px; }
.footer__quick a { display: inline-block; padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer__quick a:hover, .footer__contact a:hover { border-bottom-color: currentColor; }
.footer__contact li { padding: 4px 0; color: var(--muted-d); }
.footer__contact b { font-weight: 400; }
.footer__bottom {
  margin-top: clamp(48px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line-d);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.footer__legal { font-size: .8125rem; color: var(--muted-d); margin: 0; }
.footer__social { display: inline-flex; align-items: center; gap: 2px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  color: var(--paper); opacity: .78; border-radius: 4px;
  transition: opacity .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.social-link:hover, .social-link:focus-visible {
  opacity: 1; color: var(--mark); transform: translateY(-2px);
}
.social-link svg { display: block; }
.social-sep {
  display: inline-block; width: 1px; height: 18px; background: var(--line-d); margin: 0 4px; opacity: .8;
}

/* Botón flotante */
.wa-float {
  position: fixed; z-index: 55; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; height: 56px; min-width: 56px; justify-content: center; padding: 0 16px;
  background: var(--ink); color: var(--paper); border-radius: 28px; box-shadow: 0 0 0 2px var(--paper), 0 8px 24px rgba(0,0,0,.25);
  visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.wa-float.is-on { visibility: visible; opacity: 1; transform: none; }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.wa-float svg .fill { fill: currentColor; stroke: none; }
.wa-float span { display: none; font: 600 .8125rem/1 var(--f-text); letter-spacing: .06em; text-transform: uppercase; }

/* ==========================================================================
   CASO DE OBRA — pantalla completa
   ========================================================================== */
.case { --bar-h: 60px; position: fixed; inset: 0; z-index: 100; background: var(--paper); color: var(--ink); }
.case__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-behavior: auto; }
.case.is-open .case__scroll { animation: caseIn .55s var(--ease); }
@keyframes caseIn { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }

.case__bar {
  position: sticky; top: 0; z-index: 6; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-inline: var(--pad); background: var(--paper); border-bottom: 1px solid var(--line);
}
.case__crumb { font: 500 .875rem/1.2 var(--f-text); color: var(--muted); }
.case__ctrls { display: flex; align-items: center; gap: 8px; }
.case__ctrls .round { width: 42px; height: 42px; }
.case__close { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; background: var(--ink); color: var(--paper); font: 600 .75rem/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; }
.case__close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.case__head { padding-block: clamp(36px, 6vw, 88px) clamp(28px, 4vw, 56px); display: grid; gap: 14px; }
.case__type { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--muted); }
.case__title { font: 500 clamp(2.5rem, 9vw, 8rem)/.94 var(--f-display); letter-spacing: -.04em; text-transform: uppercase; overflow-wrap: break-word; }
.case__sub { font: 400 clamp(1.125rem, 2vw, 1.5rem)/1.35 var(--f-text); color: var(--muted); max-width: 30em; }
.case__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 20px; border-top: 1px solid var(--ink); }
.case__meta div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.case__meta dt { font-size: .8125rem; color: var(--muted); }
.case__meta dd { font-weight: 500; }
.case__hero { aspect-ratio: 4 / 3; }

.case__layout { padding-block: 0 clamp(40px, 6vw, 80px); }
.steps { position: sticky; top: var(--bar-h); z-index: 4; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: 10px var(--pad); background: var(--paper); border-bottom: 1px solid var(--line); }
.steps::-webkit-scrollbar { display: none; }
.steps a { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--cement); font-size: .875rem; color: var(--muted); white-space: nowrap; }
.steps a b { font-weight: 500; margin-right: .35em; }
.steps a.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.chapter { padding-block: clamp(44px, 7vw, 104px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--bar-h) + 64px); }
.chapter:last-of-type { border-bottom: 0; }
.chapter__label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.chapter__label span { font: 500 .9375rem/1 var(--f-display); color: var(--muted); }
.chapter__label h3 { font: 500 clamp(1.75rem, 4vw, 3.25rem)/1 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.chapter__text { font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.45; max-width: 30em; text-wrap: pretty; }
.chapter__fig { margin-top: 32px; }
.chapter__fig figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.chapter__fig .media { aspect-ratio: 3 / 2; }

.tech { margin-top: 32px; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); max-width: 40em; }
.tech div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tech dt { color: var(--muted); }
.tech dd { font-weight: 500; text-align: right; }
.tech dd.is-ph { color: #66675F; }

.stages { list-style: none; position: relative; margin-top: 32px; max-width: 40em; counter-reset: st; }
.stages::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 14px; width: 1px; background: var(--cement); }
.stages li { position: relative; padding: 11px 0 11px 34px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); border-bottom: 1px solid var(--line); counter-increment: st; }
.stages li::before { content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; background: var(--paper); border: 1px solid var(--ink); }
.stages li:last-child::before { background: var(--mark); border-color: var(--ink); }

/* Antes / después */
.ba { --pos: 50%; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; pointer-events: none; }
.ba__knob svg { width: 22px; height: 22px; fill: none; stroke: #000; stroke-width: 1.8; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:focus-within .ba__knob { outline: 2px solid var(--mark); outline-offset: 2px; }
.ba .chip { position: absolute; bottom: 12px; z-index: 2; pointer-events: none; }
.ba .chip:nth-of-type(1) { left: 12px; }
.ba .chip:nth-of-type(2) { right: 12px; }

/* Galería (Swiper) — estilos base propios; no se carga el CSS de Swiper */
.gallery { margin-top: 32px; }
.gallery__main { position: relative; aspect-ratio: 3 / 2; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--soft); }
.gallery__main::-webkit-scrollbar { display: none; }
.gallery .swiper-wrapper { display: flex; height: 100%; box-sizing: content-box; }
.gallery .swiper-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
.gallery .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery .swiper-initialized { overflow: hidden; scroll-snap-type: none; }
.gallery__tag { position: absolute; left: 12px; bottom: 12px; }
.gallery__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.gallery__count { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery__btns { display: flex; gap: 8px; }
.gallery__btns .round { width: 42px; height: 42px; }
.gallery__thumbs { display: none; margin-top: 12px; overflow: hidden; }
.gallery.is-swiper .gallery__thumbs { display: block; }
.gallery__thumbs .swiper-wrapper { display: flex; }
.gallery__thumbs .swiper-slide { flex: 0 0 auto; width: 84px; aspect-ratio: 3 / 2; height: auto; margin-right: 8px; opacity: .55; cursor: pointer; transition: opacity .2s; }
.gallery__thumbs .swiper-slide-thumb-active { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.gallery.is-full { position: fixed; inset: 0; z-index: 250; margin: 0; padding: 16px; background: #000; color: var(--paper); display: flex; flex-direction: column; }
.gallery.is-full .gallery__main { flex: 1; min-height: 0; aspect-ratio: auto; background: #000; }
.gallery.is-full .gallery__count { color: var(--muted-d); }
.gallery.is-full .swiper-slide img { object-fit: contain; }
.gallery.is-full .round:hover { background: var(--paper); color: #000; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video img, .video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; color: #000; }
.video__play span { width: 76px; height: 76px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; transition: transform .3s var(--ease); }
.video__play:hover span { transform: scale(1.06); }
.video__play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.video--empty { display: grid; place-items: center; border: 1px dashed var(--cement-d); background: transparent; color: var(--muted); aspect-ratio: 16 / 7; text-align: center; padding: 16px; }

/* CTA dentro del caso */
.case__cta { margin-top: 48px; padding: clamp(28px, 4vw, 56px); background: var(--ink); color: var(--paper); display: grid; gap: 20px; justify-items: start; }
.case__cta h3 { font: 500 clamp(1.75rem, 4vw, 3.25rem)/1 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.case__cta p { color: var(--muted-d); max-width: 30em; }
.case__cta :focus-visible { outline-color: var(--mark); }

.case__next { display: block; padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid var(--ink); }
.case__next small { display: block; font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.case__next b { display: block; font: 500 clamp(1.75rem, 6vw, 4.5rem)/1 var(--f-display); letter-spacing: -.035em; text-transform: uppercase; transition: transform .4s var(--ease); }
.case__next:hover b { transform: translateX(10px); }

.case__cta-bar { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--pad) max(12px, env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); }
.case__cta-bar p { display: none; font-weight: 500; }
.case__cta-bar :focus-visible { outline-color: var(--mark); }
.case__cta-bar .btn { flex: 1 1 auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .cover__title .line > span { transform: none; }
  .cover__sub, .cover__actions, .cover__scroll, .mark { opacity: 1; }
}
