/* =========================================================
   TEMA___ ARQ — Stylesheet
   Editorial / arquitectónico — Blanco · Negro · Acento rojo
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --ink:        #0A0A0A;
  --ink-soft:   #2A2A2A;
  --muted:      #6F6F6F;
  --line:       #E6E6E6;
  --paper:      #FFFFFF;
  --cream:      #F6F4F0;
  --accent:     #D62828;
  --accent-ink: #A11D1D;

  --f-display: "Fraunces", "Times New Roman", Times, serif;
  --f-body:    "JetBrains Mono", ui-monospace, "Courier New", monospace;
  --f-ui:      "JetBrains Mono", ui-monospace, "Courier New", monospace;

  --max-w:    1280px;
  --gutter:   clamp(20px, 4vw, 56px);
  --media-max: 1100px;

  --t-fast: 200ms ease;
  --t-med:  350ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 14px;          /* mono needs un poco menos */
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Typography (todos los títulos en mono — unidad Chotto) ---------- */
.display, h1, h2, h2.display, .h-display, h3 {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h3 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1em;
  color: var(--ink);
}

p { margin: 0 0 1em; max-width: 65ch; }
.lead {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.accent { color: var(--accent); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(48px, 8vw, 96px) 0; }

/* Page header — compacto, para que el contenido entre en el primer fold */
.page-head {
  padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 40px);
}
.page-head__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 6px 0 16px;
}
.page-head__lead {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  max-width: 52ch;
  color: var(--ink-soft);
  margin: 0;
  font-variation-settings: "opsz" 24;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav__logo {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.02em;
  font-variation-settings: "opsz" 14;
}
.nav__logo .under { color: var(--accent); letter-spacing: -0.05em; }
.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.nav__link {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color var(--t-fast);
}
.nav__link:hover { color: var(--accent); }
.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}
.nav__toggle {
  display: none;
  font-size: 22px;
  line-height: 1;
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(60px, 13vw, 200px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero__title .accent-underscore { color: var(--accent); letter-spacing: -0.08em; }
.hero__title .small { font-size: 0.42em; vertical-align: 0.6em; letter-spacing: 0.04em; }

.hero__media {
  margin: clamp(32px, 5vw, 64px) auto 0;
  max-width: var(--media-max);
  position: relative;
}
.hero__media img {
  width: 100%;
  height: clamp(320px, 48vh, 520px);
  object-fit: cover;
}
.hero__caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Intro / Manifesto ---------- */
.manifesto {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto__grid {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .manifesto__grid { grid-template-columns: 1fr; } }

/* ---------- Projects index (cards) ---------- */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px) clamp(24px, 3vw, 48px);
}
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; gap: 56px; } }

.project-card {
  display: block;
  color: inherit;
  position: relative;
}
.project-card__media {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;      /* rectangular cinematográfico */
  background: var(--cream);
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-med);
}
.project-card:hover .project-card__media img { transform: scale(1.03); }

.project-card__num {
  position: absolute;
  top: 14px; left: 16px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--paper);
  mix-blend-mode: difference;
  font-weight: 500;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-top: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  transition: border-color var(--t-fast);
}
.project-card:hover .project-card__meta { border-color: var(--accent); }

.project-card__title {
  font-family: var(--mono);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 500;
  margin: 0;
}
.project-card:hover .project-card__title { color: var(--accent); transition: color var(--t-fast); }

.project-card__year {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.project-card__caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* The first card in the home grid can be wider */
.projects--featured > :nth-child(1) { grid-column: 1 / -1; }
.projects--featured > :nth-child(1) .project-card__media { aspect-ratio: 16 / 9; max-height: 520px; }

/* =========================================================
   CHOTTO STYLE — Global (nav, stage, projects list, footer)
   Aplica a TODAS las páginas del sitio
   ========================================================= */
:root { --mono: "JetBrains Mono", "Courier New", ui-monospace, monospace; }

/* Top bar minimal: nav izq · marca centro · social der */
.ch-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px clamp(20px, 4vw, 56px);
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.ch-nav__left, .ch-nav__right {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  font-family: var(--mono);
  font-size: 13px;
}
.ch-nav__right { justify-content: flex-end; }
.ch-nav__link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.ch-nav__link:hover, .ch-nav__link.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.ch-brand {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}
.ch-brand .under { color: var(--accent); letter-spacing: -0.05em; }

/* Hamburger toggle: oculto en desktop, visible en mobile a la izquierda */
.ch-mobile-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  padding: 4px 0;
  font-family: var(--mono);
}

@media (max-width: 760px) {
  .ch-nav {
    grid-template-columns: auto 1fr auto;
    padding: 14px 16px;
    gap: 12px;
  }
  .ch-mobile-toggle {
    display: inline-flex;
    grid-column: 1;
    justify-self: start;
    z-index: 60;
  }
  .ch-nav__left {
    display: none;
    /* Cuando se abre el menú */
  }
  .ch-nav__left.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    z-index: 50;
    gap: 14px;
  }
  .ch-brand {
    grid-column: 2;
    justify-self: center;
    font-size: 15px;
  }
  .ch-nav__right {
    grid-column: 3;
    gap: 14px;
  }
}

/* Stage central (home): title + hero + cta */
.ch-stage {
  text-align: center;
  padding: clamp(28px, 4vw, 56px) 24px clamp(40px, 6vw, 72px);
}
.ch-address {
  font-family: var(--mono);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 auto;
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .ch-address { white-space: normal; font-size: clamp(15px, 4.5vw, 18px); }
}

.ch-hero {
  margin: clamp(32px, 5vw, 64px) auto 0;
  max-width: 880px;
  padding: 0 clamp(16px, 3vw, 40px);
}
.ch-hero img { width: 100%; height: auto; display: block; }

.ch-cta-row {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(32px, 4vw, 56px);
  flex-wrap: wrap;
}
.ch-cta-row a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.ch-cta-row a:hover { color: var(--accent); border-color: var(--accent); }

/* Bloque "El estudio" en el home — retrato + extracto + link */
.ch-studio {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 8vw, 96px) clamp(24px, 4vw, 56px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.ch-studio__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.ch-studio__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.ch-studio__body {
  max-width: 60ch;
}
.ch-studio__title {
  font-family: var(--mono);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  line-height: 1.3;
}
.ch-studio__body p {
  font-family: var(--mono);
  font-size: clamp(13px, 1.3vw, 14px);
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.ch-studio__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  margin-top: clamp(20px, 3vw, 32px);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.ch-studio__link:hover { color: var(--accent); border-color: var(--accent); }
.ch-studio__link .arrow { font-family: var(--f-display); font-size: 16px; line-height: 1; }
@media (max-width: 760px) {
  .ch-studio__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
    text-align: center;
  }
  /* En móvil: texto arriba, retrato debajo centrado */
  .ch-studio__body { order: 1; }
  .ch-studio__portrait { order: 2; justify-self: center; }
  .ch-studio__portrait img {
    max-width: 280px;
    margin: 0 auto;
  }
  .ch-studio__body p,
  .ch-studio__title { text-align: center; margin-left: auto; margin-right: auto; }
  .ch-studio__link { margin-left: auto; margin-right: auto; }
}

/* Sección de proyectos abajo (formato menú) */
.ch-projects {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 56px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.ch-projects__head {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ch-projects__head a { color: var(--ink); }
.ch-projects__head a:hover { color: var(--accent); }

.ch-list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.ch-list li { border-bottom: 1px solid var(--line); }
.ch-list a {
  display: grid;
  grid-template-columns: 60px 1fr 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(20px, 2.5vw, 32px) 0;
  transition: padding var(--t-fast), color var(--t-fast);
  font-family: var(--mono);
}
.ch-list a:hover { padding-left: 16px; color: var(--accent); }
.ch-list a:hover .ch-list__title { color: var(--accent); }
.ch-list__num { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }
.ch-list__title {
  font-family: var(--mono);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--t-fast);
}
.ch-list__meta { font-size: 13px; color: var(--muted); letter-spacing: 0.05em; }
.ch-list__arrow { font-family: var(--f-display); font-size: 22px; color: var(--accent); }
@media (max-width: 760px) {
  .ch-list a { grid-template-columns: 40px 1fr auto; }
  .ch-list__meta { display: none; }
}

/* Mini carrusel de dibujos en el hero */
.ch-mini__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
}
.ch-mini__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.ch-mini__slide.is-active { opacity: 1; pointer-events: auto; }
.ch-mini__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ch-mini__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px; color: var(--muted); letter-spacing: 0.08em;
  min-height: 22px;
}
.ch-mini__cap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  padding-right: 16px;
}
.ch-mini__dots { display: flex; gap: 8px; }
.ch-mini__dot {
  width: 22px; height: 1px;
  background: var(--line);
  border: 0; padding: 6px 0;
  background-clip: content-box;
  cursor: pointer;
  transition: background var(--t-fast);
}
.ch-mini__dot.is-active { background: var(--accent); background-clip: content-box; }
.ch-mini__dot:hover { background: var(--ink); background-clip: content-box; }

/* Footer minimal Chotto (slim, blanco, alineado con el header) */
.ch-foot {
  border-top: 1px solid var(--line);
  padding: 18px clamp(24px, 4vw, 56px);
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12px; color: var(--muted); letter-spacing: 0.05em;
}
.ch-foot .ch-foot__brand {
  font-family: var(--f-display);
  font-size: clamp(16px, 1.4vw, 18px);
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: center;
}
.ch-foot .ch-foot__brand .under { color: var(--accent); letter-spacing: -0.05em; }
.ch-foot .ch-foot__left  { text-align: left; }
.ch-foot .ch-foot__right { text-align: right; }
.ch-foot a { color: var(--muted); }
.ch-foot a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .ch-foot { grid-template-columns: 1fr; text-align: center; padding: 20px 16px; gap: 8px; }
  .ch-foot .ch-foot__left, .ch-foot .ch-foot__right { text-align: center; }
}

/* Icono social en el nav (reemplazo de texto Instagram) */
.ch-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  color: var(--ink);
  transition: color var(--t-fast);
}
.ch-nav__icon:hover { color: var(--accent); }
.ch-nav__icon svg { width: 20px; height: 20px; display: block; }

/* WhatsApp FAB removido — el ícono ahora vive en el nav.
   Mantenemos display:none para esconder cualquier rastro en páginas viejas. */
.wa-fab { display: none !important; }

/* Page-head: el título "Proyectos.", "Servicios.", etc. ahora en mono */
.page-head__title {
  font-family: var(--mono);
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-weight: 400;
}
.page-head__lead {
  font-family: var(--mono);
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--muted);
  line-height: 1.55;
  font-weight: 400;
}

/* Eyebrow / pequeños rótulos: que usen mono natural */
.eyebrow {
  font-family: var(--mono);
}

/* Visibility helpers para slides split mobile */
.proj-cover__slide.mobile-only { display: none; }
@media (max-width: 760px) {
  .proj-cover__slide.desktop-only { display: none; }
  .proj-cover__slide.mobile-only { display: block; }
}

/* ---------- Project page: carrusel cover ---------- */
.proj-cover {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);   /* alto menos nav sticky */
  min-height: 480px;
  overflow: hidden;
  background: #000;
}
@media (max-width: 760px) {
  .proj-cover {
    height: calc(100vh - 56px);
    min-height: 420px;
  }
}
.proj-cover__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.proj-cover__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.proj-cover__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Paneo horizontal continuo (La Valiente móvil: cover-02 L→R sin fade) */
.proj-cover__slide--pan img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
  /* Estado de reposo = final del paneo (derecha).
     Al perder .is-active la animación se retira y la imagen queda aquí,
     evitando el salto de vuelta al inicio durante el fade-out. */
  transform: translate3d(calc(100vw - 100%), 0, 0);
}
.proj-cover__slide--pan.is-active img {
  animation: lvPanLR 2600ms ease-in-out forwards;
}
@keyframes lvPanLR {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(100vw - 100%), 0, 0); }
}
.proj-cover__slide::after {
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 60%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
  z-index: 2;
}
.proj-cover__caption {
  position: absolute;
  bottom: clamp(28px, 4vw, 56px);
  left: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  color: #fff;
  z-index: 3;
  pointer-events: none;
}
.proj-cover__title {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.proj-cover__meta {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: 0.9;
}
.proj-cover__dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.proj-cover__dot {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  border: 0;
  padding: 8px 0;
  background-clip: content-box;
  cursor: pointer;
  transition: background var(--t-fast);
}
.proj-cover__dot.is-active { background: var(--accent); background-clip: content-box; }
.proj-cover__dot:hover { background: #fff; background-clip: content-box; }

/* ---------- Project: descripción next-fold ---------- */
.proj-intro {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
}
.proj-intro__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.proj-intro__num {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj-intro__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
@media (max-width: 760px) {
  .proj-intro__meta { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.proj-intro__meta dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.proj-intro__meta dd { margin: 0; font-size: 14px; }

/* ---------- Galería de thumbs pequeños ---------- */
.proj-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
  margin: 0 auto;
  max-width: var(--media-max);
  padding: 0 var(--gutter);
}
.proj-thumbs__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
  cursor: zoom-in;
  position: relative;
}
.proj-thumbs__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-med), opacity var(--t-fast);
}
.proj-thumbs__item:hover img { transform: scale(1.03); opacity: 0.92; }

.proj-thumbs--head {
  margin: clamp(40px, 6vw, 72px) auto clamp(16px, 2vw, 24px);
  max-width: var(--media-max);
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3vw, 40px);
}
.proj-thumbs--head h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0;
}
.proj-thumbs--head .eyebrow { margin: 0; }

@media (max-width: 760px) {
  .proj-thumbs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Project page (legacy hero, kept for fallback) ---------- */
.project-hero {
  padding-top: clamp(24px, 3vw, 48px);
}
.project-hero__title {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
}
.project-hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(20px, 3vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
@media (max-width: 760px) {
  .project-hero__meta { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}
.project-hero__meta dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.project-hero__meta dd { margin: 0; font-size: 15px; }

.project-hero__cover {
  margin: clamp(20px, 3vw, 40px) auto 0;
  max-width: var(--media-max);
}
.project-hero__cover img {
  width: 100%;
  height: clamp(340px, 55vh, 580px);
  object-fit: cover;
}

.project-body {
  padding-top: clamp(60px, 10vw, 120px);
  padding-bottom: clamp(60px, 10vw, 120px);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  margin: clamp(48px, 7vw, 96px) auto 0;
  max-width: var(--media-max);
}
.project-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gi--full { grid-column: 1 / -1; }
.gi--half-l { grid-column: 1 / span 6; }
.gi--half-r { grid-column: 7 / span 6; }
.gi--two-thirds { grid-column: 1 / span 8; }
.gi--one-third  { grid-column: 9 / span 4; }
.gi--portrait { aspect-ratio: 3 / 4; max-height: 560px; }
.gi--wide { aspect-ratio: 16 / 9; max-height: 520px; }
.gi--square { aspect-ratio: 1 / 1; max-height: 520px; }
@media (max-width: 760px) {
  .gi--half-l, .gi--half-r, .gi--two-thirds, .gi--one-third { grid-column: 1 / -1; }
}

.project-next {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 96px) 0;
}
.project-next a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  transition: color var(--t-fast);
}
.project-next a:hover { color: var(--accent); }
.project-next__label {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.project-next__title {
  font-family: var(--mono);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-portrait img {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--ink);
  padding-top: 32px;
}
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat__num {
  font-family: var(--mono);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.stat__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- Services ---------- */
.services-list { border-top: 1px solid var(--ink); }
.service {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background var(--t-fast);
}
.service:hover { background: var(--cream); padding-left: 16px; padding-right: 16px; }
.service__num {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--accent);
}
.service__title {
  font-family: var(--mono);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.service__desc { color: var(--ink-soft); }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact__line { font-size: 18px; margin-bottom: 8px; }
.contact__line a:hover { color: var(--accent); }

.form input,
.form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 14px 0;
  font: inherit;
  color: var(--ink);
  margin-bottom: 8px;
  transition: border-color var(--t-fast);
}
.form input:focus, .form textarea:focus { outline: 0; border-bottom-color: var(--accent); }
.form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}
.form textarea { min-height: 120px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  margin-top: 24px;
  border: 1px solid var(--ink);
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn .arrow { font-family: var(--f-display); font-size: 16px; line-height: 1; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 9vw, 120px) 0 32px;
}
.footer a { color: var(--paper); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid #2a2a2a;
}
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; gap: 32px; } }

.footer__logo {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.footer__logo .under { color: var(--accent); }
.footer h4 { color: var(--paper); opacity: 0.6; }
.footer ul li { padding: 6px 0; font-size: 14px; }
.footer ul li a { opacity: 0.85; transition: opacity var(--t-fast), color var(--t-fast); }
.footer ul li a:hover { opacity: 1; color: var(--accent); }

.footer__bot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

/* ---------- Marquee / running text ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  background: var(--paper);
}
.marquee__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marq 38s linear infinite;
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.02em;
}
.marquee__track span:nth-child(even) { color: var(--accent); }
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: clamp(48px, 7vw, 96px) 0; }
.text-right { text-align: right; }

/* ---------- Hero carousel (full-screen) ---------- */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
}
.hc__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hc__slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
/* Desktop (por defecto): foto cubriendo toda la pantalla */
.hc__slide img,
.hc__slide .hc__fg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}
.hc__slide .hc__bg { display: none; }

/* Móvil: foto completa centrada + fondo borroso de la misma foto */
@media (max-width: 760px) {
  .hc__slide img,
  .hc__slide .hc__fg {
    object-fit: contain;
  }
  .hc__slide .hc__bg {
    display: block;
    position: absolute;
    inset: -4%;
    width: 108%; height: 108%;
    object-fit: cover;
    object-position: center;
    filter: blur(36px) brightness(0.5) saturate(1.05);
    transform: scale(1.08);
    z-index: 0;
    pointer-events: none;
  }
}
.hc__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
  z-index: 2;
}

.hc__topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 4vw, 56px);
  color: #fff;
}
.hc__logo {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.6vw, 28px);
  letter-spacing: 0.02em;
  color: #fff;
  font-weight: 400;
}
.hc__logo .under { color: var(--accent); letter-spacing: -0.05em; }

.hc__links {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
}
.hc__link {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
  transition: color var(--t-fast);
}
.hc__link:hover { color: var(--accent); }
.hc__menu-btn { display: none; color: #fff; font-size: 24px; }
@media (max-width: 760px) {
  .hc__links { display: none; }
  .hc__menu-btn { display: block; }
  .hc__links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(0,0,0,.85);
    padding: 24px clamp(20px,4vw,56px);
    gap: 18px;
  }
}

.hc__bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 0 clamp(20px, 4vw, 56px) clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  color: #fff;
  pointer-events: none;
}
.hc__caption {
  font-family: var(--f-display);
  font-size: clamp(36px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hc__caption .sub {
  display: block;
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 14px;
  opacity: 0.85;
}
.hc__dots {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}
.hc__dot {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  border: 0;
  padding: 8px 0;
  background-clip: content-box;
  cursor: pointer;
  transition: background var(--t-fast);
}
.hc__dot.is-active { background: var(--accent); background-clip: content-box; }
.hc__dot:hover { background: #fff; background-clip: content-box; }

.hc__scroll {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
  z-index: 5;
  animation: bob 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* Gallery: more layout options */
.gi--col-3   { grid-column: span 3;  }
.gi--col-4   { grid-column: span 4;  }
.gi--col-5   { grid-column: span 5;  }
.gi--col-6   { grid-column: span 6;  }
.gi--col-7   { grid-column: span 7;  }
.gi--col-8   { grid-column: span 8;  }
.gi--col-9   { grid-column: span 9;  }
.gi--col-12  { grid-column: 1 / -1;  }
@media (max-width: 760px) {
  .gi--col-3, .gi--col-4, .gi--col-5, .gi--col-6, .gi--col-7, .gi--col-8, .gi--col-9 { grid-column: 1 / -1; }
}

.gallery-section-title {
  grid-column: 1 / -1;
  margin: clamp(40px, 5vw, 72px) 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3vw, 48px);
}
.gallery-section-title h3 {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 36px);
  margin: 0;
}
.gallery-section-title .eyebrow { margin: 0; }

/* ---------- Lightbox ---------- */
.project-gallery img { cursor: zoom-in; transition: opacity var(--t-fast); }
.project-gallery img:hover { opacity: 0.92; }

.lb {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.96);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lb.is-open { display: flex; }

.lb__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 80px;
}
@media (max-width: 760px) { .lb__stage { padding: 80px 16px; } }

.lb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity .25s ease;
}
.lb__img.is-loaded { opacity: 1; }

.lb__close, .lb__nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  font-family: var(--f-display);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  z-index: 2;
}
.lb__close { top: 20px; right: 20px; font-size: 24px; }
.lb__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb__close:hover, .lb__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.lb__nav--prev:hover { transform: translateY(-50%) translateX(-2px); }
.lb__nav--next:hover { transform: translateY(-50%) translateX(2px); }

.lb__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--f-body);
}

@media (max-width: 760px) {
  .lb__close, .lb__nav { width: 40px; height: 40px; font-size: 18px; }
  .lb__close { top: 14px; right: 14px; }
  .lb__nav--prev { left: 8px; }
  .lb__nav--next { right: 8px; }
}

/* Reveal on scroll: solo se oculta si JS está activo (clase añadida por inline script en cada página) */
.js-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.js-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
}
