/* Ingecon Arquitectura
   Tokens de la marca: hueso, carbón y ocre. --accent para texto y líneas, --accent-fill para fondos con texto carbón.
   Esquinas rectas en todo el sitio. */
@font-face { font-family: "Geist"; src: url("../../fonts/Geist-100-900.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../../fonts/GeistMono-100-900.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #f4f1ea;
  --surface: #eae5da;
  --surface-2: #ddd6c8;
  --ink: #1c1f24;
  --ink-2: #44474d;
  --ink-3: #66686c;
  --line: #d5cec0;
  --accent: #84582a;
  --accent-fill: #a8763e;
  --on-accent: #1c1f24;
  --dark: #1c1f24;
  --dark-ink: #f4f1ea;
  --shadow: 0 24px 60px -24px rgb(0 0 0 / .3);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-move: cubic-bezier(.77, 0, .175, 1);
  --press: 160ms;
  --ui: 200ms;
  --section: clamp(72px, 10vw, 136px);
  --section-sm: clamp(40px, 6vw, 80px);
  --nav-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --surface: #1c1f24;
    --surface-2: #262a30;
    --ink: #f4f1ea;
    --ink-2: #c6c3bb;
    --ink-3: #a09e97;
    --line: #31353c;
    --accent: #cf9f68;
    --accent-fill: #a8763e;
    --dark: #16181c;
    --dark-ink: #f4f1ea;
    --shadow: 0 24px 60px -24px rgb(0 0 0 / .75);
    --on-accent: #1c1f24;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 "Geist", ui-sans-serif, system-ui, sans-serif;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1320px, 100% - 64px); } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* Tipografía */
.eyebrow {
  font: 500 .75rem/1.2 "Geist Mono", ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 20px;
}
.h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  height: 48px; padding: 0 22px; border: 1px solid transparent;
  font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: transform var(--press) var(--ease), background-color var(--ui) ease, color var(--ui) ease, border-color var(--ui) ease;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 1.1em; transition: transform var(--ui) var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn:hover i { transform: translate(2px, -1px); } }
.btn--solid { background: var(--accent-fill); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .btn--solid:hover { background: color-mix(in oklab, var(--accent-fill) 84%, black); } }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--ink); color: var(--bg); } }

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { width: 176px; height: auto; }
.brand .logo-claro { display: none; }
@media (prefers-color-scheme: dark) { .brand .logo-oscuro { display: none; } .brand .logo-claro { display: block; } }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { text-decoration: none; font-size: .95rem; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--ui) var(--ease); }
.nav__links a[aria-current="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ink); } }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); } }
.nav__cta { height: 42px; }
.nav__cta-mobile, .nav__toggle { display: none; }
@media (max-width: 860px) {
  .nav__cta { display: none; }
  .nav__toggle { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line); font-size: 1.4rem; cursor: pointer; }
  .nav nav { position: absolute; inset: var(--nav-h) 0 auto 0; margin: 0; }
  .nav__links {
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 180ms var(--ease), visibility 0s 180ms;
  }
  .nav.is-open .nav__links { clip-path: inset(0); visibility: visible; transition: clip-path 240ms var(--ease); }
  .nav__links a { display: block; padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta-mobile { display: block; }
  .nav__cta-mobile a { color: var(--accent); border-bottom: 0; }
}

/* Hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .hero { min-height: calc(100dvh - var(--nav-h)); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 5fr 7fr; gap: 64px; }
}
.hero__title {
  font-size: clamp(3rem, 1.8rem + 5vw, 6rem);
  line-height: 1.04; letter-spacing: -.045em; font-weight: 600; text-wrap: balance;
}
.hero__title em { display: inline-block; font-style: italic; font-weight: 500; color: var(--accent); padding: 0 .08em .08em 0; }
.hero__sub { margin-top: 24px; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 40ch; }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media { position: relative; padding: 0 0 56px 0; }
@media (min-width: 768px) { .hero__media { padding: 0 0 72px 72px; } }
.hero__main { overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.hero__main img { width: 100%; height: 100%; object-fit: cover; }
.hero__inset {
  position: absolute; left: 0; bottom: 0; width: 34%; aspect-ratio: 3 / 4; overflow: hidden;
  border: 6px solid var(--bg); box-shadow: var(--shadow);
}
.hero__inset img { width: 100%; height: 100%; object-fit: cover; }
/* Cifras */
.figures { border-block: 1px solid var(--line); }
.figures__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .figures__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.figure { padding: 32px 16px 32px 0; display: flex; flex-direction: column; gap: 6px; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 899px) {
  .figure--lead { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .figure--lead + .figure { padding-left: 0; border-left: 0; }
  .figure:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
.figure__num { font: 500 clamp(2.6rem, 2rem + 2.4vw, 4rem)/1 "Geist Mono", monospace; letter-spacing: -.04em; }
.figure--lead .figure__num { color: var(--accent); }
.figure__label { color: var(--ink-3); font-size: .95rem; max-width: 26ch; }

/* Sobre nosotros */
.about { padding: var(--section) 0; }
.about__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 4fr 7fr; gap: clamp(48px, 7vw, 112px); align-items: start; } }
.about__portrait { position: relative; }
@media (min-width: 900px) { .about__portrait { position: sticky; top: calc(var(--nav-h) + 32px); } }
.about__portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(.35) contrast(1.03); }
.about__portrait figcaption { margin-top: 16px; display: grid; gap: 4px; padding-left: 14px; border-left: 3px solid var(--accent); }
.about__portrait figcaption span { color: var(--ink-3); font-size: .9rem; }
.about__body { margin-top: 32px; display: grid; gap: 18px; color: var(--ink-2); font-size: 1.08rem; max-width: 64ch; }
.about__quote { margin-top: 48px; padding: 32px 0 0; border-top: 1px solid var(--line); }
.about__quote p { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; max-width: 30ch; }
.about__quote p::before { content: "“"; color: var(--accent); }
.about__quote p::after { content: "”"; color: var(--accent); }

/* Servicios: bento */
.services { padding: var(--section) 0; background: var(--surface); }
.services .lead { margin-top: 20px; }
.bento { margin-top: 56px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--a, .tile--e { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(260px, auto); }
  .tile--a { grid-column: 1 / 3; grid-row: 1 / 3; }
  .tile--b { grid-column: 3 / 4; grid-row: 1 / 2; }
  .tile--c { grid-column: 4 / 5; grid-row: 1 / 2; }
  .tile--d { grid-column: 3 / 4; grid-row: 2 / 3; }
  .tile--f { grid-column: 4 / 5; grid-row: 2 / 3; }
  .tile--e { grid-column: 1 / 5; grid-row: 3 / 4; min-height: 320px; }
  .tile--band .tile__body { max-width: 560px; }
  .tile--band::after { background: linear-gradient(to right, rgb(14 15 17 / .88) 0%, rgb(14 15 17 / .55) 45%, rgb(14 15 17 / 0) 80%); }
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .5s var(--ease);
}
.tile > i, .tile__body > i { font-size: 1.75rem; color: var(--accent); margin-bottom: auto; padding-bottom: 32px; }
.tile h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; }
.tile p { color: var(--ink-2); }
.tile ul { display: flex; flex-wrap: wrap; gap: 6px; }
.tile li { font-size: .875rem; padding: 4px 10px; border: 1px solid var(--line); color: var(--ink-2); }
.tile--accent { background: var(--accent-fill); color: var(--on-accent); }
.tile--accent > i, .tile--accent p { color: var(--on-accent); }
.tile--accent li { border-color: rgb(255 255 255 / .45); color: var(--on-accent); }
.tile--dark { background: var(--dark); color: var(--dark-ink); }
.tile--dark li { border-color: rgb(255 255 255 / .18); color: #d6d6d3; }
.tile--photo { padding: 0; min-height: 380px; color: #f4f4f2; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(14 15 17 / .9) 0%, rgb(14 15 17 / .55) 45%, rgb(14 15 17 / .05) 100%); }
@media (hover: hover) and (pointer: fine) { .tile--photo:hover img { transform: scale(1.04); } }
.tile__body { margin-top: auto; padding: 28px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.tile--photo .tile__body > i { color: #fff; }
.tile--photo li { border-color: rgb(255 255 255 / .35); color: #f1f1ef; background: rgb(14 15 17 / .25); }

/* Trabajos */
.work { padding: var(--section) 0; }
.filters { margin: 32px 0 40px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 40px; padding: 0 16px; border: 1px solid var(--line); background: transparent;
  font-size: .9rem; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: background-color var(--ui) ease, color var(--ui) ease, border-color var(--ui) ease, transform var(--press) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); color: var(--ink); } }
.chip:active { transform: scale(.97); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.projects { display: grid; gap: 40px 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .projects { grid-template-columns: repeat(12, 1fr); }
  .project { grid-column: span 4; }
  .project.is-wide { grid-column: span 8; }
}
.project[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .project { transition: opacity 280ms var(--ease), transform 280ms var(--ease); transition-delay: calc(var(--i, 0) * 40ms); @starting-style { opacity: 0; transform: translateY(12px); } }
}
.project button, .project > a {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%;
  display: flex; flex-direction: column;
}
.project > a:focus-visible, .project button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.project__img { overflow: hidden; aspect-ratio: 4 / 3; flex: 1 0 auto; background: var(--surface-2); }
@media (min-width: 1100px) { .project.is-wide .project__img { aspect-ratio: 16 / 9; } }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .project > a:hover .project__img img, .project button:hover .project__img img { transform: scale(1.04); } }
.project__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; }
.project__cat { font: 500 .75rem/1.4 "Geist Mono", monospace; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.project__year { font: 400 .85rem/1 "Geist Mono", monospace; color: var(--ink-3); }
.project__title { margin-top: 6px; font-size: 1.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 12px; }
.project__title i { flex: none; color: var(--ink-3); transition: transform var(--ui) var(--ease), color var(--ui) ease; }
@media (hover: hover) and (pointer: fine) { .project > a:hover .project__title i, .project button:hover .project__title i { transform: translate(3px, -3px); color: var(--accent); } }
.project__place { color: var(--ink-3); font-size: .95rem; margin-top: 2px; }
.projects__empty { grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); }

/* Marquee de localidades */
.places { padding: 28px 0; border-block: 1px solid var(--line); overflow: hidden; }
.marquee { display: flex; width: max-content; }
.marquee__track { display: flex; flex: none; }
.marquee__track span {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 500; letter-spacing: -.03em;
  color: var(--ink-3); padding-right: 1.2em; display: inline-flex; align-items: center; gap: 1.2em;
}
.marquee__track span::after { content: ""; width: .5em; height: .32em; background: var(--accent-fill); transform: skewX(-14deg); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 48s linear infinite; }
  .places:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* Contacto */
.contact { padding: var(--section) 0; }
.contact__grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: clamp(56px, 8vw, 120px); align-items: start; } }
.contact__title { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.75rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin-bottom: 20px; }
.contact__info { margin-top: 40px; display: grid; gap: 24px; }
.contact__info dt { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-3); }
.contact__info dt i { color: var(--accent); font-size: 1.1rem; }
.contact__info dd { margin-top: 4px; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 500; letter-spacing: -.01em; }
.contact__info dd a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .contact__info dd a:hover { background-size: 100% 2px; } }

.contact__actions { display: grid; gap: 12px; }
.action {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
  column-gap: 18px; align-items: center; padding: 26px 28px; text-decoration: none;
  background: var(--surface); border-left: 3px solid transparent;
  transition: background-color var(--ui) ease, border-color var(--ui) ease, transform var(--press) var(--ease);
}
.action > i:first-child { grid-row: 1 / 3; font-size: 1.6rem; color: var(--accent); }
.action__label { font-size: .85rem; color: var(--ink-3); }
.action__value { grid-column: 2; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); font-weight: 500; letter-spacing: -.015em; overflow-wrap: anywhere; }
.action__arrow { grid-column: 3; grid-row: 1 / 3; font-size: 1.3rem; color: var(--ink-3); transition: transform var(--ui) var(--ease), color var(--ui) ease; }
@media (hover: hover) and (pointer: fine) { .action:hover { background: var(--surface-2); border-left-color: var(--accent); } }
@media (hover: hover) and (pointer: fine) { .action:hover .action__arrow { transform: translate(3px, -3px); color: var(--accent); } }
.action:active { transform: scale(.98); }
.action:first-child { background: var(--accent-fill); color: var(--on-accent); }
.action:first-child > i:first-child, .action:first-child .action__label, .action:first-child .action__arrow { color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .action:first-child:hover { background: color-mix(in oklab, var(--accent-fill) 84%, black); border-left-color: transparent; } }
@media (max-width: 520px) { .action { padding: 20px; column-gap: 14px; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { text-decoration: none; color: var(--ink-2); font-size: .9rem; }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { color: var(--ink); } }
.footer__copy { margin-left: auto; color: var(--ink-3); font-size: .85rem; }
@media (max-width: 767px) { .footer__copy { margin-left: 0; width: 100%; } }

/* Modal de proyecto */
.modal {
  padding: 0; border: 0; background: var(--bg); color: var(--ink);
  width: min(1180px, 100% - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  box-shadow: 0 40px 120px -20px rgb(0 0 0 / .5);
}
.modal::backdrop { background: rgb(12 13 15 / .72); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in 260ms var(--ease); }
.modal[open]::backdrop { animation: fade 200ms ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.modal__inner { display: grid; position: relative; }
@media (min-width: 900px) { .modal__inner { grid-template-columns: 3fr 2fr; } }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px;
  display: grid; place-items: center; font-size: 1.25rem; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); transition: transform .2s var(--ease);
}
.modal__close:active { transform: scale(.97); }
.modal__gallery { background: var(--surface-2); display: flex; flex-direction: column; }
@media (min-width: 900px) { .modal__gallery { position: sticky; top: 0; align-self: start; } }
.modal__img { width: 100%; height: auto; max-height: min(68dvh, 640px); object-fit: contain; background: var(--surface-2); }
.modal__thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.modal__thumbs button { flex: none; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; cursor: pointer; background: none; opacity: .65; transition: opacity .2s, border-color .2s; }
.modal__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
@media (hover: hover) and (pointer: fine) { .modal__thumbs button:hover { opacity: 1; } }
.modal__info { padding: clamp(24px, 3.5vw, 44px); padding-top: clamp(28px, 4vw, 56px); }
.modal__cat { font: 500 .75rem/1.4 "Geist Mono", monospace; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.modal__title { margin-top: 10px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; padding-right: 40px; text-wrap: balance; }
.modal__place { margin-top: 8px; color: var(--ink-3); }
.modal__facts { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
.modal__facts div { border-top: 2px solid var(--ink); padding-top: 10px; }
.modal__facts dt { font-size: .8rem; color: var(--ink-3); }
.modal__facts dd { margin-top: 2px; font: 500 1.05rem/1.3 "Geist Mono", monospace; letter-spacing: -.02em; }
.modal__facts .is-full { grid-column: 1 / -1; }
.modal__facts .is-full dd { font-family: "Geist", sans-serif; font-weight: 400; font-size: .98rem; letter-spacing: 0; }
.modal__facts .is-full dd li { padding-left: 16px; position: relative; }
.modal__facts .is-full dd li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.modal__list { margin-top: 28px; display: grid; gap: 14px; }
.modal__list li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line); }
.modal__list strong { font-weight: 600; }
.modal__list span { color: var(--ink-3); font-size: .9rem; }
body.has-modal { overflow: hidden; }

/* Revelado al hacer scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 800ms var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal-img img { transform: scale(1.05); transition: transform 1000ms var(--ease); transition-delay: var(--d, 0ms); }
  .js .is-in.reveal { opacity: 1; transform: none; }
  .js .is-in.reveal-img { clip-path: inset(0); }
  .js .is-in.reveal-img img { transform: none; }
}

/* ===== Landing ===== */
.btn--light { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .7); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: #fff; color: #16171a; } }




.iconbtn {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.2rem; cursor: pointer;
  background: transparent; border: 1px solid var(--ink); transition: background-color var(--ui) ease, color var(--ui) ease, transform var(--press) var(--ease), opacity .2s;
}
@media (hover: hover) and (pointer: fine) { .iconbtn:hover { background: var(--ink); color: var(--bg); } }
.iconbtn:active { transform: scale(.97); }
.iconbtn:disabled { opacity: .3; pointer-events: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px; font-weight: 500; text-decoration: none;
  padding-bottom: 4px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat;
}
.link-arrow i { transition: transform var(--ui) var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover i { transform: translateX(4px); } }






.form { grid-row: span 2; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); background: var(--bg); color: var(--ink); padding: clamp(18px, 3vw, 28px); align-items: start; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 9px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--ink-3); border-radius: 0; font: inherit; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--ink); }
.field__error { color: var(--accent); font-size: .88rem; }
.form__status { font-size: .92rem; color: var(--ink-2); }
.form__status:empty { display: none; }
.form .btn { justify-self: start; }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--full, .form__status { grid-column: 1 / -1; } }

/* Ficha: etiqueta de infografía y rejilla sin huecos */
.modal__stage { margin: 0; }
.modal__stage figcaption { font: 400 .78rem/1.4 "Geist Mono", ui-monospace, monospace; color: var(--ink-3); padding: 8px 0; }
.modal__stage figcaption[hidden] { display: none; }
.projects { grid-auto-flow: dense; }
.hero__main { position: relative; }
.modal__inner { grid-template-columns: minmax(0, 1fr); }
.modal__gallery, .modal__thumbs { min-width: 0; }
@media (min-width: 900px) { .modal__inner { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }

/* Tipografía: titulares equilibrados, párrafos sin viudas, cifras de ancho fijo */
h1, h2, h3, blockquote p { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.about__quote p { hanging-punctuation: first; }
[data-count], .figure__num, .modal__facts dd, .project__year, .slide__meta { font-variant-numeric: tabular-nums; }
.modal__img { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal[open] { animation: fade 160ms ease; }
}


/* Móvil: composición propia, no el escritorio apilado */
@media (max-width: 767px) {
  :root { --section: 56px; --section-sm: 32px; --nav-h: 62px; }
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand { min-height: 44px; }
  .link-arrow { min-height: 44px; }
  .footer__links a { display: inline-block; padding: 10px 0; }
  .h2 { font-size: 1.95rem; letter-spacing: -.025em; }
  .lead { font-size: 1.05rem; }





  /* Personas: se ve la cara sin ocupar toda la pantalla */
  .founder__img img, .about__portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 18%; }
  .about__grid { gap: 28px; }

  /* Contacto: primero las vías directas */
  .cta__grid, .contact__grid { gap: 24px; }
  .cta__title, .contact__title { font-size: 2.5rem; }
  .cta__actions { order: 1; }
  .form { order: 2; grid-row: auto; padding: 18px; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 48px; }
  .form .btn { width: 100%; min-height: 50px; }
  .cta__btn, .action { min-height: 60px; }

  /* Página del estudio */
  .hero { padding-top: 24px; }
  .hero__grid { gap: 24px; }
  .hero__title { font-size: 2.7rem; letter-spacing: -.04em; line-height: 1.04; }
  .hero__ctas { margin-top: 24px; display: grid; grid-template-columns: 1.4fr 1fr; }
  .hero__ctas .btn { width: 100%; min-height: 50px; padding-inline: 12px; }
  .hero__media { padding-bottom: 28px; overflow: clip; }
  .hero__inset { width: 34%; }
  .figures__grid { grid-template-columns: repeat(3, 1fr); }
  .figure { min-width: 0; padding: 16px 12px 16px 0; border: 0; }
  .figure--lead { grid-column: 1 / -1; padding-bottom: 4px; }
  .figure__num { font-size: 2.3rem; }
  .figure__label { font-size: .86rem; }
  .bento { margin-top: 28px; gap: 8px; }
  .tile { padding: 20px; min-height: 0; }
  .tile--photo { padding: 0; min-height: 300px; }
  .tile__body { padding: 20px; }
  .tile > i, .tile__body > i { padding-bottom: 14px; }
  .filters { margin-block: 20px; }
  .chip { min-height: 44px; }

  /* Trabajos a dos columnas: menos scroll, más obras a la vista */
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
  .project.is-wide { grid-column: 1 / -1; }
  .project.is-wide .project__img { aspect-ratio: 16 / 9; }
  .project:not(.is-wide) .project__title { font-size: 1rem; line-height: 1.2; }
  .project:not(.is-wide) .project__title i, .project:not(.is-wide) .project__year { display: none; }
  .project:not(.is-wide) .project__cat { font-size: .72rem; letter-spacing: .02em; }
  .project:not(.is-wide) .project__place { font-size: .86rem; line-height: 1.3; }

  /* Ficha a pantalla completa */
  .modal { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; }
  .modal__close { position: fixed; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; }
  .modal__img { max-height: 48dvh; }
  .modal__thumbs button { width: 72px; height: 54px; }
}
@media (max-width: 349px) {
  .projects { grid-template-columns: minmax(0, 1fr); }
  .hero__ctas { grid-template-columns: 1fr; }
}

/* Fotografías heterogéneas: color real con un tratamiento común */
.project__img img, .hero__media img, .about__portrait img, .tile img { filter: saturate(.86) contrast(1.03); }
.tile__enlace { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .tile__enlace:hover i { transform: translateX(4px); } }
.tile__enlace i { transition: transform var(--ui) var(--ease); }

/* ---------- Páginas independientes (estructura nueva) ---------- */
.h1 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.2rem); line-height: 1; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.pagina-cab { padding: clamp(40px, 7vw, 104px) 0 clamp(24px, 4vw, 48px); }
.pagina-cab .h1 { margin-top: 14px; }
.pagina-cab .lead { margin-top: 20px; }
.pagina-cab + .services, .pagina-cab + .work { padding-top: 0; }
.cta-banda { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line, rgb(0 0 0 / .12)); }
.cta-banda__fila { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.cta-banda__acciones { display: flex; align-items: center; gap: 28px; }
.migas { font: 400 .8rem/1.4 "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.migas a { color: inherit; } .migas a:hover { color: var(--accent); }
.ficha-p { padding: clamp(32px, 5vw, 72px) 0 clamp(40px, 6vw, 88px); }
.ficha-p__cabecera { margin-top: 18px; } .ficha-p__cabecera .lead { margin-top: 16px; }
.ficha-p__rejilla { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 960px) { .ficha-p__rejilla { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; } }
.ficha-p__escena { position: relative; margin: 0; background: var(--surface-2); aspect-ratio: 4 / 3; overflow: hidden; }
.ficha-p__escena img { width: 100%; height: 100%; object-fit: contain; }
.ficha-p__escena figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; background: rgb(28 31 36 / .78); color: #f4f1ea; font: 400 .72rem/1.3 "Geist Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
.ficha-p__miniaturas { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.ficha-p__miniaturas button { flex: none; width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; opacity: .7; }
.ficha-p__miniaturas button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.ficha-p__miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.ficha-p__info { display: grid; gap: 28px; justify-items: start; }
.ficha-p__info .modal__facts { margin-top: 0; width: 100%; }
.ficha-p__pasos { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line, rgb(0 0 0 / .12)); padding-top: 20px; }
.ficha-p__pasos a { display: grid; gap: 4px; font-weight: 600; } .ficha-p__pasos a:last-child { text-align: right; }
.ficha-p__pasos a:hover { color: var(--accent); }
.ficha-p__cargando, .ficha-p__vacio { padding: 96px 0; display: grid; gap: 20px; justify-items: start; }
.contacto-form { padding: 0 0 clamp(56px, 8vw, 112px); }
.contacto-form__rejilla { display: grid; gap: 32px; } @media (min-width: 960px) { .contacto-form__rejilla { grid-template-columns: 1fr 1.4fr; } }
.contacto-form .lead { margin-top: 14px; }

/* Ficha en móvil: datos en una columna si no caben, foto a sangre y deslizable. */
.ficha-p .modal__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ficha-p .modal__facts dd { overflow-wrap: anywhere; }
.ficha-p .modal__facts .is-lugar { grid-column: 1 / -1; }
.ficha-p__escena { touch-action: pan-y; user-select: none; }
.ficha-p__contador { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; background: rgb(28 31 36 / .72); color: #f4f1ea; font: 400 .74rem/1 "Geist Mono", monospace; }
.ficha-p__flecha { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: rgb(28 31 36 / .6); color: #f4f1ea; font-size: 1.2rem; cursor: pointer; }
.ficha-p__flecha--ant { left: 8px; } .ficha-p__flecha--sig { right: 8px; }
@media (max-width: 699px) {
  .ficha-p { padding-top: 20px; }
  .ficha-p__galeria { margin-inline: -16px; }
  .ficha-p__escena { aspect-ratio: 4 / 3; }
  .ficha-p__escena img { object-fit: cover; }
  .ficha-p__miniaturas { padding-inline: 16px; }
  .ficha-p__miniaturas button { width: 76px; }
  .ficha-p__info .btn { width: 100%; justify-content: center; }
  .ficha-p__pasos a { font-size: .95rem; }
  .cta-banda .btn { flex: 1 1 auto; justify-content: center; }
  .cta-banda__acciones { width: 100%; flex-wrap: wrap; }
}
@media (hover: none) { .ficha-p__flecha { display: none; } }
.ficha-p__rejilla > * { min-width: 0; }
.ficha-p__info { justify-items: stretch; }
.ficha-p__info > .enlace, .ficha-p__info > .btn { justify-self: start; }
@media (max-width: 699px) { .ficha-p__info > .btn { justify-self: stretch; } }
