/* Paleta y tipografías del brochure corporativo MDGN
   Lenguaje: grilla arquitectónica — líneas finas, bloques numerados, sin esquinas redondeadas */
:root {
  --dark: #1b1e1c;
  --dark-2: #232624;
  --sand: #e7e1d5;
  --cream: #f3efe7;
  --accent: #a94a22;       /* terracota: acento sobre fondos claros */
  --accent-dark: #8f3d1b;
  --accent-light: #e0895a; /* terracota clara: acento sobre fondo oscuro */
  --text: #1b1e1c;
  --muted: #4a4a44;
  --muted-light: #b9b3a6;
  --on-accent: #f7f1e8;
  --line: rgba(27, 30, 28, .16);
  --line-strong: rgba(27, 30, 28, .85);
  --line-light: rgba(243, 239, 231, .14);
  --wrap: 1360px;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 76px;
  --display: "Space Grotesk", Arial, sans-serif;
  --body: "Public Sans", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--body); color: var(--text); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
::selection { background: var(--accent); color: var(--cream); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--cream); padding: 10px 16px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Fondos */
.dark { background: var(--dark); color: var(--cream); }
.sand { background: var(--sand); }
.cream { background: var(--cream); }
.terracotta { background: var(--accent); color: var(--on-accent); }

/* Tipografía */
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow.accent-light, .label.accent-light { color: var(--accent-light); }
.eyebrow.on-accent { color: var(--on-accent); }
.h2 { font-size: clamp(34px, 4.6vw, 64px); margin-bottom: clamp(40px, 6vw, 72px); max-width: 20ch; text-wrap: balance; }
.display { font-size: clamp(44px, 7.6vw, 112px); letter-spacing: -0.035em; line-height: .98; max-width: 14ch; margin-bottom: 40px; text-wrap: balance; }
.body-lg { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.terracotta .body-lg { color: var(--on-accent); }
.label { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.note { margin-top: 36px; color: var(--muted); font-size: 15px; font-style: italic; }

/* Cabecera de sección: número + etiqueta a la izquierda, contenido a la derecha */
.sec-grid { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 0 clamp(24px, 4vw, 64px); align-items: start; }
.sec-label { display: flex; align-items: baseline; gap: 14px; border-top: 1px solid currentColor; padding-top: 14px; }
.sec-label .eyebrow { margin: 0; }
.sec-num { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .1em; opacity: .55; font-variant-numeric: tabular-nums; }
.sec-grid .h2 { padding-top: 6px; }
.sec-body .h2 { margin-bottom: 32px; }
.sec-head { margin-bottom: 8px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 30; color: var(--cream); transition: background-color .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(27, 30, 28, .94); border-bottom-color: var(--line-light); }
@supports (backdrop-filter: blur(1px)) { .site-header.is-scrolled { background: rgba(27, 30, 28, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-sub { font-family: var(--display); font-size: 11px; line-height: 1.3; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; text-decoration: none; color: var(--muted-light); transition: color .25s; padding: 4px 0; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent-light); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--cream); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { color: var(--cream); background: var(--accent); padding: 11px 20px; transition: background .25s; }
.nav .nav-cta:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream); transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Botones */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 28px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: var(--cream); }
.btn-accent::before { background: var(--accent-dark); }
.btn-ghost-light { border-color: rgba(243, 239, 231, .4); color: var(--cream); }
.btn-ghost-light::before { background: var(--cream); }
.btn-ghost-light:hover { color: var(--dark); border-color: var(--cream); }

/* Portada */
.hero { position: relative; background: var(--dark); color: var(--cream); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 48px) 0 0; overflow: clip; }

.hero > .wrap { width: 100%; }
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; flex: 1; }
.hero-copy { max-width: 820px; }
.hero-title { font-size: clamp(40px, 5.8vw, 88px); letter-spacing: -0.035em; line-height: 1; margin-bottom: 28px; max-width: 16ch; text-wrap: balance; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-tags li { font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: .02em; padding: 8px 14px; border: 1px solid rgba(243, 239, 231, .4); background: rgba(27, 30, 28, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--cream); transition: border-color .3s, background-color .3s; }
.hero-tags li:hover { border-color: var(--accent-light); background: rgba(224, 137, 90, .1); }
.hero-lead { font-size: clamp(17px, 1.5vw, 20px); color: rgba(243, 239, 231, .85); max-width: 44ch; margin-bottom: 40px; }
.sec-body .body-lg + .body-lg { margin-top: 20px; }
.hero-in { animation: heroIn 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
/* Foto de fachada a pantalla completa, con velo para que el texto se lea */
.hero-media { position: absolute; inset: 0; z-index: 0; margin: 0; overflow: hidden; animation: bgIn 1.6s ease both; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slowZoom 18s ease-out both; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 30, 28, .92) 0%, rgba(27, 30, 28, .78) 38%, rgba(27, 30, 28, .3) 75%, rgba(27, 30, 28, .2) 100%), linear-gradient(to top, rgba(27, 30, 28, .85) 0%, transparent 30%), linear-gradient(to bottom, rgba(27, 30, 28, .6) 0%, transparent 22%); }
@keyframes bgIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slowZoom { from { transform: scale(1.18); } to { transform: scale(1.08); } }
.hero-foot { position: relative; z-index: 2; display: flex; gap: 32px; align-items: center; padding-top: 28px; padding-bottom: 28px; margin-top: clamp(32px, 5vh, 56px); font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); }
.hero-foot::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-light); }
.hero-credit { margin-left: auto; color: rgba(243, 239, 231, .7); }
.scroll-cue { text-decoration: none; color: var(--cream); display: inline-flex; gap: 10px; }
.scroll-cue span { display: inline-block; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* Secciones */
.section { position: relative; padding: clamp(80px, 11vw, 152px) 0; }
.section.tight-top { padding-top: 0; }

/* Por qué */
.terracotta .display { color: var(--on-accent); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid rgba(247, 241, 232, .5); }
.pillars > div { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 18px; }
.pillars > div + div { border-left: 1px solid rgba(247, 241, 232, .3); padding-left: 28px; }
.pillars span { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .1em; opacity: .7; }
.pillars h3 { font-size: clamp(22px, 2.2vw, 30px); max-width: 14ch; }

/* Cifras */
.dark .sec-label { border-color: var(--line-light); }
.stats-block + .stats-block { margin-top: clamp(48px, 6vw, 80px); }
.stats-title { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line-light); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats > div { padding: 32px 24px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.stats > div + div { border-left: 1px solid var(--line-light); padding-left: 24px; }
.stats strong { font-family: var(--display); font-size: clamp(40px, 4.8vw, 76px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--accent-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats span { color: var(--muted-light); max-width: 24ch; }

/* Mosaico de bloques (especialidades / construcción) */
.tiles { display: grid; border-top: 1px solid var(--line-strong); }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tiles.four .tile h3 { font-size: clamp(24px, 2.2vw, 32px); }
.tile { position: relative; padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 40px) clamp(36px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; min-height: 300px; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.tile + .tile { border-left: 1px solid var(--line); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dark); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.tile-num { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--accent); padding-bottom: 40px; transition: color .5s; }
.tile h3 { font-size: clamp(26px, 2.6vw, 38px); }
.tile p { color: var(--muted); font-size: 17px; max-width: 34ch; transition: color .5s; }
@media (hover: hover) {
  .tile:hover { color: var(--cream); }
  .tile:hover::before { transform: scaleY(1); }
  .tile:hover .tile-num { color: var(--accent-light); }
  .tile:hover p { color: var(--muted-light); }
}

/* Grilla de ítems con líneas */
.items { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.items > div { padding: 28px 28px 36px 0; border-bottom: 1px solid var(--line); }
.items > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.items h3 { font-size: 22px; margin-bottom: 10px; }
.items p { color: var(--muted); }

/* Proceso */
.steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); padding-top: 40px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 0; left: 0; height: 1px; }
.steps::before { right: 0; background: var(--line-light); }
.steps::after { width: 100%; background: var(--accent-light); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform .2s linear; }
.steps li { position: relative; padding-right: 24px; }
.steps li::before { content: ""; position: absolute; top: -45px; left: 0; width: 9px; height: 9px; background: var(--dark); border: 1px solid var(--accent-light); }
.steps span { display: block; font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--accent-light); margin-bottom: 20px; }
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p { color: var(--muted-light); font-size: 15px; }

/* Columnas de 3 con línea */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.cols3 > div { padding: 28px 28px 8px 0; }
.cols3 > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.cols3 h3 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 12px; }
.cols3 p { color: var(--muted); }
.dark .cols3 { border-color: var(--line-light); }
.dark .cols3 > div + div { border-color: var(--line-light); }
.dark .cols3 p { color: var(--muted-light); }
.big { display: block; font-family: var(--display); font-size: clamp(64px, 8vw, 120px); font-weight: 600; letter-spacing: -0.04em; line-height: .9; color: var(--accent); margin-bottom: 24px; }

/* Marquesina de capítulos */
.marquee { background: var(--accent); color: var(--on-accent); padding: 28px 0 30px; overflow: hidden; }
.marquee-label { max-width: var(--wrap); margin: 0 auto 12px; padding: 0 var(--gutter); font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.marquee-track { display: flex; width: max-content; animation: marquee 75s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-size: clamp(30px, 4vw, 56px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; padding-right: .9em; }
.marquee-track span::after { content: "·"; padding-left: .9em; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Herramientas */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; background: var(--dark); color: var(--cream); }
.tools > div { padding: 32px; }
.tools > div + div { border-left: 1px solid var(--line-light); }
.tools .label { color: var(--accent-light); }
.tools p:last-child { color: var(--muted-light); }

/* Proyectos del equipo: tabla */
.ledger { border-top: 1px solid var(--line-strong); }
.ledger-row { display: grid; grid-template-columns: 4fr 4fr 1fr 2fr; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background-color .3s, padding .4s var(--ease); }
.ledger-head { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 14px 0; }
.ledger-row h3 { font-size: clamp(19px, 1.8vw, 24px); }
.ledger-row span { color: var(--muted); }
.ledger-row strong { font-family: var(--display); font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.ledger-head span:last-child { text-align: right; }
@media (hover: hover) {
  .ledger-row:not(.ledger-head):hover { background: var(--cream); padding-left: 16px; padding-right: 16px; }
}

/* Obras */
.works { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: clamp(20px, 2.4vw, 32px); }
.work-lg { grid-row: span 2; }
.work-img { overflow: hidden; position: relative; }
.work-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85); }
.work-lg .work-img img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.work-lg { display: flex; flex-direction: column; }
.work-lg .work-img { flex: 1; }
.work-lg .work-img img { position: absolute; inset: 0; }
.work:hover .work-img img { transform: scale(1.05); filter: saturate(1); }
.work figcaption { padding-top: 18px; border-top: 1px solid var(--line-light); margin-top: 18px; }
.work h3 { font-size: 22px; margin-bottom: 6px; }
.work p { color: var(--muted-light); font-size: 15px; }

/* Obra destacada con ficha y galería */
.project { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 64px); margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-light); }
.project-kicker { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 16px; }
.project h3 { font-size: clamp(30px, 3.2vw, 46px); margin-bottom: 8px; }
.project-sub { font-family: var(--display); font-size: 18px; color: var(--muted-light); margin-bottom: 28px; }
.project-text { color: var(--muted-light); line-height: 1.7; margin-bottom: 32px; }
.project-data { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; border-top: 1px solid var(--line-light); padding-top: 24px; }
.project-data dt { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 4px; }
.project-data dd { margin: 0; color: var(--cream); }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); align-content: start; }
.project-gallery .is-main { grid-column: 1 / -1; }
.project-gallery.is-three { grid-template-columns: repeat(3, 1fr); }
.project.is-reverse { grid-template-columns: 7fr 5fr; }
.project-gallery.has-portrait { grid-template-columns: 3fr 2fr; }
.project-gallery.has-portrait .is-main { grid-column: 1; }
.project-gallery.has-portrait .is-tall { grid-column: 2; grid-row: 1 / span 2; }
.project-gallery.has-portrait .is-tall img { aspect-ratio: auto; height: 100%; }
.project.is-reverse .project-info { order: 2; }
.project-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.9); }
.project-gallery .work-img:hover img { transform: scale(1.05); filter: saturate(1); }
.js .project-gallery .work-img[data-reveal] { opacity: 1; transform: none; }
.js .project-gallery .work-img[data-reveal] img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease) var(--d, 0s), transform 1.1s var(--ease), filter .6s; }
.js .project-gallery .work-img[data-reveal].is-revealed img { clip-path: inset(0 0 0 0); }

/* Clientes */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.clients li { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream); transition: background-color .4s; }
/* Ancho por logo (--w en el HTML) calculado para que todos ocupen un área visual similar */
.clients img { width: var(--w, 50%); height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; mix-blend-mode: multiply; transition: filter .4s, opacity .4s, transform .5s var(--ease); }
.clients li:hover { background: #fff; }
.clients li:hover img { filter: none; opacity: 1; transform: scale(1.04); }

/* Opiniones de clientes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.quote { margin: 0; padding: 36px 32px 8px 0; display: flex; flex-direction: column; gap: 32px; }
.quote + .quote { padding-left: 32px; border-left: 1px solid var(--line-light); }
.quote blockquote { position: relative; margin: 0; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--display); font-size: 72px; line-height: .8; color: var(--accent-light); margin-bottom: 12px; }
.quote blockquote p { font-family: var(--display); font-size: clamp(19px, 1.7vw, 23px); font-weight: 400; line-height: 1.4; letter-spacing: -0.01em; color: var(--cream); }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line-light); }
.quote figcaption strong { font-family: var(--display); font-size: 17px; font-weight: 600; }
.quote figcaption span { color: var(--muted-light); font-size: 14px; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px clamp(20px, 2.4vw, 32px); }
.portrait { overflow: hidden; margin-bottom: 20px; background: var(--dark); }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(100%); transition: filter .6s, transform 1s var(--ease); }
.team article:hover img { filter: none; transform: scale(1.04); }
.team h3 { font-size: 22px; }
.team .role { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 8px 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.team p:last-child { color: var(--muted); font-size: 15px; }

/* Contacto */
.contact { overflow: clip; }
.contact .wrap { position: relative; }
.contact .display { color: var(--cream); }
.contact-cols { margin-top: clamp(64px, 9vw, 112px); }
.contact .contact-cols, .contact .contact-cols > div { border: 0; }
.contact-cols p { color: var(--muted-light); font-size: 17px; line-height: 1.7; }
.contact-cols .label { margin-bottom: 12px; }
.contact-cols a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: color .3s, background-size .45s var(--ease); }
.contact-cols a:hover { color: var(--cream); background-size: 100% 1px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--muted-light); border-top: 1px solid var(--line-light); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }

/* Aparición al hacer scroll (el contenido es visible sin JS: solo se oculta cuando main.js marca <html class="js">) */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Títulos: palabras que suben desde una máscara (sin JS no se divide nada y el texto se ve normal) */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.sw > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0s)); }
.is-revealed .sw > span, .is-revealed.sw > span { transform: none; }
[data-split].is-revealed .sw > span { transform: none; }

/* Imágenes que se descubren como una cortina */
.js [data-reveal] .work-img, .js [data-reveal] .portrait { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--d, 0s) + .1s); }
.js [data-reveal].is-revealed .work-img, .js [data-reveal].is-revealed .portrait { clip-path: inset(0 0 0 0); }

/* Logos de clientes que entran uno a uno */
.js .clients[data-reveal] li { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease), background-color .4s; transition-delay: calc(var(--i, 0) * 60ms); }
.js .clients[data-reveal].is-revealed li { opacity: 1; transform: none; }
.js .clients[data-reveal].is-revealed li:hover { transition-delay: 0s; }

/* Foto ampliada de obras */
.work-img[data-lightbox] { cursor: zoom-in; }
.has-cursor .work-img[data-lightbox] { cursor: none; }
.lightbox { margin: auto; padding: 0; border: 0; background: transparent; max-width: min(92vw, 1400px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(27, 30, 28, .92); }
.lightbox[open] { animation: lbIn .5s var(--ease); }
.lightbox[open]::backdrop { animation: lbFade .4s ease; }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lbFade { from { opacity: 0; } }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: var(--cream); padding-top: 14px; font-family: var(--display); font-size: 16px; }
.lightbox figcaption span { display: block; color: var(--muted-light); font-family: var(--body); font-size: 14px; margin-top: 4px; }
.lightbox-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; background: none; border: 1px solid rgba(243, 239, 231, .4); color: var(--cream); font-size: 24px; line-height: 1; cursor: pointer; transition: background-color .3s, color .3s; }
.lightbox-close:hover { background: var(--cream); color: var(--dark); }

/* Botón flotante de WhatsApp */
.btn svg { flex: none; }
.btn .wa-icon { color: #25d366; }
.wa-float { position: fixed; right: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 35; display: inline-flex; align-items: center; gap: 0; height: 56px; padding: 0 17px; background: #25d366; color: #fff; text-decoration: none; font-family: var(--display); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(27, 30, 28, .28); animation: waIn .8s var(--ease) 1.2s both; transition: background-color .3s, gap .45s var(--ease), padding .45s var(--ease); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease); }
.wa-float:hover, .wa-float:focus-visible { background: #128c7e; gap: 10px; padding: 0 20px; }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 120px; }
.menu-open ~ .wa-float, body:has(.nav.open) .wa-float { display: none; }
.hero-foot, .footer-inner { padding-right: calc(var(--gutter) + 72px); }
@keyframes waIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Barra de avance de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; background: var(--accent-light); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }

/* Luz que sigue al mouse en la portada */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(224, 137, 90, .14), transparent 60%); }
.hero.is-lit::before { opacity: 1; }

/* Hitos del proceso que se encienden con el avance */
.steps li::before { transition: background-color .4s, transform .4s var(--ease); }
.steps li.is-on::before { background: var(--accent-light); transform: scale(1.3); }
.steps li span, .steps li h3 { transition: color .4s; }
.steps li:not(.is-on) span { color: var(--muted-light); }

/* Cursor personalizado (solo con mouse) */
.cursor { position: fixed; top: 0; left: 0; z-index: 60; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 1px solid var(--accent-light); border-radius: 50%; pointer-events: none; opacity: 0; display: grid; place-items: center; transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s; mix-blend-mode: normal; }
.cursor.is-ready { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(224, 137, 90, .14); }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--accent); border-color: var(--accent); }
.cursor-label { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); opacity: 0; transition: opacity .2s; }
.cursor.is-view .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.has-cursor .work-img { cursor: none; }

/* Botones magnéticos */
[data-magnetic] { transition: color .35s var(--ease), border-color .35s var(--ease), translate .5s var(--ease); }

/* Las tarjetas conservan la transición de color además de la aparición */
.js .tile[data-reveal] { transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), color .5s var(--ease); }

/* Solo se desactivan los efectos intrusivos */
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: scale(1.08); }
  .scroll-cue span { animation: none; }
  .marquee-track { animation-duration: 150s; }
}

/* Responsive */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; padding-top: 0; }
  .steps::before, .steps::after, .steps li::before { display: none; }
  .steps li { border-top: 1px solid var(--line-light); padding-top: 20px; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .tiles.four { grid-template-columns: repeat(2, 1fr); }
  .tiles.four .tile:nth-child(3) { border-left: 0; }
  .tiles.four .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line-light); margin-top: 24px; }
  .nav { gap: 22px; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--dark); flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px; display: none; border-top: 1px solid var(--line-light); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 18px 0; font-family: var(--display); font-size: 26px; font-weight: 500; color: var(--cream); border-bottom: 1px solid var(--line-light); }
  .nav a::after { display: none; }
  .nav .nav-cta { margin-top: 24px; text-align: center; border-bottom: 0; font-size: 18px; }
  .site-header.menu-open { background: var(--dark); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-media::after { background: linear-gradient(to bottom, rgba(27, 30, 28, .75) 0%, rgba(27, 30, 28, .72) 60%, rgba(27, 30, 28, .9) 100%); }
  .hero-foot span:first-child { display: none; }
  .hero-credit { margin-left: 0; }
  .scroll-cue { margin-left: auto; }
  .hero-foot span:nth-child(2) { display: none; }

  .sec-grid { grid-template-columns: 1fr; }
  .sec-label { margin-bottom: 20px; }
  .project.is-reverse .project-info { order: 0; }
  .project.is-reverse, .project, .tiles.three, .tiles.four, .quotes, .items, .cols3, .pillars, .tools, .works { grid-template-columns: 1fr; }
  .quote + .quote { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); }
  .quote { padding-right: 0; padding-bottom: 32px; }
  .tile + .tile, .cols3 > div + div, .pillars > div + div, .tools > div + div { border-left: 0; padding-left: 0; }
  .tile + .tile { border-top: 1px solid var(--line); }
  .tile { min-height: 0; padding-left: 0; padding-right: 0; }
  .tile-num { padding-bottom: 20px; }
  .tools > div { padding: 28px 24px; }
  .tools > div + div { border-top: 1px solid var(--line-light); padding-left: 24px; }
  .cols3 > div + div, .pillars > div + div { border-top: 1px solid var(--line); }
  .pillars > div + div { border-color: rgba(247, 241, 232, .3); }
  .dark .cols3 > div + div { border-color: var(--line-light); }
  .cols3 > div, .pillars > div { padding-bottom: 28px; }
  .items > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .items > div { padding-right: 0; }
  .work-lg { grid-row: auto; }
  .work-lg .work-img img { position: static; aspect-ratio: 3 / 2; height: auto; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .ledger-row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .ledger-head { display: none; }
  .ledger-row h3 { grid-column: 1; }
  .ledger-row strong { grid-column: 2; grid-row: 1; }
  .ledger-row span:nth-of-type(1) { grid-column: 1; font-size: 15px; }
  .ledger-row span:nth-of-type(2) { grid-column: 2; text-align: right; font-size: 15px; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
  .stats > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); margin-top: 0; }
  .stats > div { padding-bottom: 24px; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .team { gap: 40px 16px; }
  .team p:last-child { font-size: 14px; }
  .btn { padding: 16px 22px; }
  .hero-credit { font-size: 10px; letter-spacing: .1em; }
}
