/* FORCE LIGHT MODE */
:root { color-scheme: light only; -webkit-color-scheme: light only; forced-color-adjust: none; }
html { color-scheme: light only; background: #FFF; }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light only !important; }
  html, body { background: #FFF !important; color: #0A0A0A !important; }
}

/* ═══ DESIGN SYSTEM ═══ */
:root {
  --bg:    #FFFFFF;
  --bg2:   #F2F2F2;
  --ink:   #0A0A0A;
  --ink2:  #5E5E5E;
  --ink3:  #ABABAB;
  --line:  rgba(0,0,0,.10);
  --line2: rgba(0,0,0,.05);
  --cond:  'Barlow Condensed', sans-serif;
  --sans:  'Barlow', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* PAGES */
.pg { display: none; min-height: 100vh; }
.pg.on { display: block; }

/* ═══ NAV ═══ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  transition: padding .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
#nav.sc {
  padding: 16px 48px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}

.nav-l {
  font-family: var(--cond);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: none;
  color: var(--ink);
  text-decoration: none;
  transition: color .3s;
}
.nav-hero .nav-l { color: #FFF; }

/* Inline nav links */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: left;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-hero .nav-links a { color: rgba(255,255,255,.85); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform .3s, width .3s, opacity .3s;
}
.nav-toggle span:nth-child(2) { width: 16px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 24px; }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 24px; }
.nav-hero .nav-toggle { color: #FFF; }

/* ═══ MENU OVERLAY (mobile) ═══ */
#menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
#menu.open { opacity: 1; pointer-events: auto; }

.menu-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.menu-list li {
  font-family: var(--cond);
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s, transform .4s cubic-bezier(.16,1,.3,1);
}
#menu.open .menu-list li { opacity: 1; transform: translateY(0); }
#menu.open .menu-list li:nth-child(1) { transition-delay: .05s; }
#menu.open .menu-list li:nth-child(2) { transition-delay: .10s; }
#menu.open .menu-list li:nth-child(3) { transition-delay: .15s; }
#menu.open .menu-list li:nth-child(4) { transition-delay: .20s; }
#menu.open .menu-list li:nth-child(5) { transition-delay: .25s; }

.menu-list a {
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: color .3s;
}
.menu-list a:hover { color: var(--ink3); }

.menu-bottom {
  position: absolute;
  bottom: 36px;
  left: 48px; right: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  transition: opacity .4s .3s;
}
#menu.open .menu-bottom { opacity: 1; }
.menu-bottom-info {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink3);
  line-height: 1.9;
}
.menu-bottom-cta {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink2);
  text-decoration: none;
  transition: color .2s;
}
.menu-bottom-cta:hover { color: var(--ink); }
#menu::after {
  content: '';
  position: absolute;
  top: 80px; left: 48px; right: 48px;
  height: 1px;
  background: var(--line);
}

/* ═══ HERO ═══ */
#hero {
  height: 100vh;
  min-height: 680px;
  position: relative;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; }
.hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
  position: absolute; inset: 0;
  filter: brightness(.72) saturate(.8);
}
.hero-img img.on { opacity: 1; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.20) 0%, rgba(0,0,0,.10) 50%, rgba(0,0,0,.60) 100%);
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 48px;
  transform: translateY(-50%);
  z-index: 5;
  color: #FFF;
  max-width: 860px;
}
.hero-title h1 {
  font-family: var(--cond);
  font-size: clamp(80px, 13vw, 200px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -3px;
  opacity: 0;
  animation: fu 1.2s .3s forwards;
}
.hero-title h1 em { font-style: italic; font-weight: 400; }
.hero-title .sub {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0;
  animation: fu 1s .8s forwards;
}

.hero-content {
  position: absolute;
  left: 48px; bottom: 48px; right: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 5;
  color: #FFF;
}
.hero-meta {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
  opacity: .8;
}
.hero-meta-r { text-align: right; }
.hero-meta-r .pno {
  font-family: var(--cond);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 4px;
}
#heroProj {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .7;
}

.hero-nav {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}
.hero-nav button {
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background .3s, width .3s;
}
.hero-nav button.on { background: #FFF; width: 40px; }

@keyframes fu { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ SECTION COMMON ═══ */
.s-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 500;
  margin-bottom: 20px;
}
.s-h {
  font-family: var(--cond);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .93;
  letter-spacing: -1px;
}
.s-h em { font-style: italic; font-weight: 400; }

/* ═══ HOME ABOUT ═══ */
#h-about { padding: 160px 48px 120px; border-top: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.about-grid h2 {
  font-family: var(--cond);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .93;
  letter-spacing: -1px;
}
.about-grid h2 em { font-style: italic; font-weight: 400; }
.about-grid .text p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink2);
}
.about-grid .text p + p { margin-top: 16px; }
.about-grid .text .cta { margin-top: 40px; }

/* ═══ HOME PROJECTS ═══ */
#h-proj { padding: 0 48px 160px; }
.proj-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 0 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.proj-counter {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink3);
  font-weight: 500;
  text-transform: uppercase;
}
.home-proj-grid {
  max-width: 1400px;
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) {
  .home-proj-grid { grid-template-columns: 1fr; gap: 12px; }
  #h-proj { padding: 0 24px 80px; }
  .proj-intro { padding: 48px 0 20px; }
}

/* ═══ CTA BUTTON ═══ */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  padding: 14px 0;
  cursor: pointer;
  border: none;
  border-bottom: 1px solid var(--ink);
  transition: gap .3s;
  font-weight: 500;
}
.cta:hover { gap: 20px; }
.cta svg { flex-shrink: 0; transition: transform .3s; }
.cta:hover svg { transform: translateX(4px); }

/* ═══ PROJECTS PAGE ═══ */
#pg-proj { padding-top: 120px; }
.pj-page-hdr {
  padding: 80px 48px 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.pj-page-hdr h1 {
  font-family: var(--cond);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 1px;
}
.pj-page-hdr h1 em { font-style: italic; font-weight: 400; }
.pj-count {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 500;
  padding-bottom: 6px;
}

.pj-cat-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  padding: 0 48px;
}
.pj-cat-strip::-webkit-scrollbar { display: none; }
.pj-cat-btn {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px 28px 16px 0;
  white-space: nowrap;
  position: relative;
  transition: color .2s;
  flex-shrink: 0;
  font-weight: 500;
}
.pj-cat-btn.on { color: var(--ink); }
.pj-cat-btn.on::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: calc(100% - 28px);
  height: 1px;
  background: var(--ink);
}

.pj-vert-list { padding: 0 48px 120px; }
.pj-vert-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0 40px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}
.pj-vert-item:first-child { border-top: 1px solid var(--line); }
.pj-vert-item:hover { background: var(--bg2); }

.pj-vi-num {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--ink3);
  padding: 32px 0;
  display: flex;
  align-items: flex-start;
  padding-top: 34px;
  flex-shrink: 0;
  font-weight: 500;
}
.pj-vi-main {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
}
.pj-vi-img {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg2);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .7s cubic-bezier(.77,0,.18,1);
}
.pj-vert-item.revealed .pj-vi-img { clip-path: inset(0 0% 0 0); }
.pj-vi-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(.25,.46,.45,.94);
}
.pj-vert-item:hover .pj-vi-img img { transform: scale(1.06); }
.pj-vi-cat {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 8px;
  font-weight: 500;
}
.pj-vi-name {
  font-family: var(--cond);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -.3px;
}
.pj-vi-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  padding: 24px 0;
  text-align: right;
  flex-shrink: 0;
  min-width: 160px;
}
.pj-vi-loc { font-size: 11px; color: var(--ink2); }
.pj-vi-year {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ink3);
  font-weight: 500;
}
.pj-vi-arrow {
  width: 24px;
  height: 1px;
  background: var(--ink3);
  position: relative;
  transition: width .3s;
  margin-top: 8px;
}
.pj-vi-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid var(--ink3);
  border-right: 1px solid var(--ink3);
  transform: rotate(45deg);
}
.pj-vert-item:hover .pj-vi-arrow { width: 40px; background: var(--ink); }
.pj-vert-item:hover .pj-vi-arrow::after { border-color: var(--ink); }

/* ═══ SINGLE PROJECT ═══ */
#pg-single { padding-top: 80px; }
.sp-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink2);
  background: none;
  border: none;
  cursor: pointer;
  margin: 32px 48px;
  font-weight: 500;
  transition: color .2s;
  font-family: var(--sans);
}
.sp-back:hover { color: var(--ink); }
.sp-back svg { transition: transform .2s; }
.sp-back:hover svg { transform: translateX(-4px); }

.sp-hero { width: 100%; aspect-ratio: 21/9; overflow: hidden; background: var(--bg2); }
.sp-hero img { width: 100%; height: 100%; object-fit: cover; }

.sp-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
}
.sp-cat {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 20px;
  font-weight: 500;
}
.sp-title {
  font-family: var(--cond);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .93;
  letter-spacing: -1px;
}
.sp-title em { font-style: italic; font-weight: 400; }
.sp-text { padding-top: 60px; }
.sp-text p { font-size: 14px; line-height: 1.9; color: var(--ink2); }
.sp-text p + p { margin-top: 16px; }
.sp-data {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.sp-di {
  padding: 16px 0;
  border-bottom: 1px solid var(--line2);
  border-right: 1px solid var(--line2);
  padding-right: 20px;
}
.sp-di:nth-child(2n) { border-right: none; padding-left: 20px; padding-right: 0; }
.sp-dl {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 6px;
  font-weight: 500;
}
.sp-dv { font-size: 13px; color: var(--ink); }

.sp-imgs { padding: 60px 48px 120px; max-width: 1400px; margin: 0 auto; }
.sp-imgs-title {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.sp-imgs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.sp-imgs-grid .sp-img-item:first-child { grid-column: span 2; }
.sp-imgs-grid .sp-img-item:first-child .sp-img-inner { aspect-ratio: 16/7; }
.sp-img-item { overflow: hidden; }
.sp-img-inner { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--bg2); }
.sp-img-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.25,.46,.45,.94);
}
.sp-img-item:hover .sp-img-inner img { transform: scale(1.03); }

/* ═══ ESTUDIO ═══ */
#pg-estudio { padding-top: 120px; }
.est-hero { padding: 80px 48px; max-width: 1400px; margin: 0 auto; }
.est-hero h1 {
  font-family: var(--cond);
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -3px;
  margin-bottom: 48px;
}
.est-hero h1 em { font-style: italic; font-weight: 400; }
.est-photo { width: 100%; aspect-ratio: 21/9; overflow: hidden; background: var(--bg2); margin-bottom: 80px; }
.est-photo img { width: 100%; height: 100%; object-fit: cover; }

.est-cols {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 48px 80px;
}
.est-cols .r p { font-size: 15px; line-height: 1.8; color: var(--ink2); }
.est-cols .r p + p { margin-top: 24px; }

.est-team {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.team-c { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; align-items: start; }
.team-portrait { aspect-ratio: 3/4; background: var(--bg2); overflow: hidden; }
.team-c h3 {
  font-family: var(--cond);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.2px;
  margin-bottom: 6px;
}
.team-role {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 14px;
  font-weight: 500;
}
.team-c p { font-size: 13px; line-height: 1.75; color: var(--ink2); }

.est-expos {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 48px;
  border-top: 1px solid var(--line);
}
.est-expos .s-h { margin-bottom: 48px; }
.exp-row {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--line2);
  align-items: baseline;
}
.exp-yr { font-size: 10px; color: var(--ink3); letter-spacing: 1px; font-weight: 500; }
.exp-nm { font-family: var(--cond); font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: -.2px; }
.exp-pl { font-size: 12px; color: var(--ink2); text-align: right; }

/* ═══ PREMIOS ═══ */
#pg-premios { padding-top: 120px; }
.pm-hero { max-width: 1400px; margin: 0 auto; padding: 80px 48px; }
.pm-hero h1 {
  font-family: var(--cond);
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -3px;
}
.pm-hero h1 em { font-style: italic; font-weight: 400; }
.pm-list { max-width: 1400px; margin: 0 auto; padding: 0 48px 120px; }
.pm-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 24px;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: background .2s, padding .3s;
}
.pm-row:last-child { border-bottom: 1px solid var(--line); }
.pm-row:hover { background: var(--bg2); padding-left: 16px; }
.pm-yr { font-size: 10px; color: var(--ink3); letter-spacing: 1px; font-weight: 500; }
.pm-nm { font-family: var(--cond); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: -.2px; }
.pm-tp { font-size: 12px; color: var(--ink2); }
.pm-ar { color: var(--ink3); opacity: 0; transition: opacity .3s, transform .3s; }
.pm-row:hover .pm-ar { opacity: 1; transform: translateX(6px); }

/* ═══ CONTACTO ═══ */
#pg-cont { padding-top: 120px; }
.ct-hero { max-width: 1400px; margin: 0 auto; padding: 80px 48px 60px; }
.ct-hero h1 {
  font-family: var(--cond);
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -3px;
}
.ct-hero h1 em { font-style: italic; font-weight: 400; }
.ct-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 48px 120px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 120px;
}
.ct-info { display: flex; flex-direction: column; gap: 0; }
.ct-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.ct-row:last-child { border-bottom: 1px solid var(--line); }
.ct-lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink3); font-weight: 500; }
.ct-val { font-size: 14px; color: var(--ink); }
.ct-val a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.ct-val a:hover { border-color: var(--ink); }

.ct-form { display: flex; flex-direction: column; }
.ff { border-bottom: 1px solid var(--line); padding: 20px 0; transition: border-color .3s; }
.ff:focus-within { border-color: var(--ink); }
.ff label {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 10px;
  font-weight: 500;
}
.ff input, .ff textarea, .ff select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
  resize: none;
}
.ff textarea { height: 80px; }
.ct-sub {
  margin-top: 36px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 18px 36px;
  cursor: pointer;
  font-weight: 500;
  transition: background .3s;
  font-family: var(--sans);
}
.ct-sub:hover { background: #333; }

/* ═══ RGPD — Checkbox de consentimiento ═══ */
.ff-consent {
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
}
.consent-label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
}
.consent-label input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px;
  border: 1px solid var(--ink3); background: transparent; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.consent-label input[type="checkbox"]:checked {
  background: var(--ink); border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='%23FAF8F5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}
.consent-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.consent-label span {
  font-size: 13px; line-height: 1.65; color: var(--ink2);
}
.consent-label span a {
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
  transition: border-color .2s;
}
.consent-label span a:hover { border-color: var(--ink); }
.consent-info {
  margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--ink3);
  padding-left: 28px;
}
.consent-info a {
  color: var(--ink3); text-decoration: none; border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.consent-info a:hover { color: var(--ink); border-color: var(--line); }

/* ═══ FOOTER ═══ */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 48px 40px;
  background: var(--bg);
}
.f-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
.f-logo {
  font-family: var(--cond);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: none;
  margin-bottom: 14px;
}
.f-logo em { font-style: normal; }
.f-tagline { font-size: 12px; color: var(--ink2); max-width: 280px; line-height: 1.7; }
.f-col h4 {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 16px;
  font-weight: 500;
}
.f-col a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 2.2;
  cursor: pointer;
  transition: color .2s;
}
.f-col a:hover { color: var(--ink2); }
.f-bottom {
  max-width: 1400px;
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink3);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ═══ PROJECTS GRID ═══ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 40px 48px 120px;
}

.pgi-item { cursor: pointer; }

.pgi-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--bg2);
}

.pgi-main, .pgi-alt {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .45s ease;
}
.pgi-alt { opacity: 0; }
.pgi-item:hover .pgi-alt { opacity: 1; }
.pgi-item:hover .pgi-main { opacity: 0; }

.pgi-name {
  font-size: 13px;
  color: var(--ink);
  padding: 10px 0 0;
  line-height: 1.35;
  font-weight: 400;
}

@media (max-width: 1300px) {
  .proj-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1000px) {
  .proj-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 32px 32px 80px; }
}
@media (max-width: 700px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 24px 24px 60px; }
}

/* ═══ REVEAL ═══ */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  /* Switch to hamburger */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  #nav { padding: 20px 24px; }
  #nav.sc { padding: 14px 24px; }

  .hero-title { left: 24px; right: 24px; max-width: none; }
  .hero-title h1 { font-size: clamp(56px, 12vw, 80px); letter-spacing: -2px; }
  .hero-content { left: 24px; right: 24px; bottom: 24px; flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero-meta-r { text-align: left; }
  .hero-nav { right: 16px; gap: 6px; }

  #h-about { padding: 80px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  #h-proj { padding: 0 24px 100px; }
  .gallery { gap: 2px; }
  .g-item.split-3, .g-item.split-3.right { grid-template-columns: 1fr; }
  .g-side-text { padding: 32px 24px; }
  .g-meta { grid-template-columns: 1fr; gap: 8px; }
  .g-meta .info { text-align: left; }

  .pj-page-hdr { flex-direction: column; align-items: flex-start; gap: 12px; padding: 60px 24px 24px; }
  .pj-cat-strip { padding: 0 24px; }
  .pj-vert-list { padding: 0 24px 80px; }
  .pj-vi-img { width: 80px; height: 56px; }
  .pj-vi-name { font-size: 18px; }
  .pj-vi-right { display: none; }

  #pg-single { padding-top: 0; }
  .sp-back { margin: 20px 24px; }
  .sp-content { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px; }
  .sp-text { padding-top: 0; }
  .sp-imgs { padding: 40px 24px 80px; }
  .sp-imgs-grid { grid-template-columns: 1fr; gap: 2px; }
  .sp-imgs-grid .sp-img-item:first-child { grid-column: 1; }
  .sp-imgs-grid .sp-img-item:first-child .sp-img-inner { aspect-ratio: 4/3; }
  .sp-data { grid-template-columns: 1fr; }
  .sp-di { border-right: none; padding-right: 0; padding-left: 0 !important; }

  .est-hero, .pm-hero, .ct-hero { padding: 60px 24px 40px; }
  .est-hero h1, .pm-hero h1, .ct-hero h1 { font-size: clamp(48px, 12vw, 80px); letter-spacing: -2px; }
  .est-photo { margin-bottom: 48px; }
  .est-cols { grid-template-columns: 1fr; gap: 40px; padding: 0 24px 60px; }
  .est-team { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .team-c { grid-template-columns: 80px 1fr; gap: 20px; }
  .est-expos { padding: 60px 24px; }
  .exp-row { grid-template-columns: 60px 1fr; gap: 16px; }
  .exp-pl { display: none; }

  .pm-list { padding: 0 24px 80px; }
  .pm-row { grid-template-columns: 60px 1fr 20px; gap: 16px; }
  .pm-tp { display: none; }

  .ct-body { grid-template-columns: 1fr; gap: 60px; padding: 40px 24px 80px; }

  .f-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .f-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .menu-bottom { left: 24px; right: 24px; }
  #menu::after { left: 24px; right: 24px; }
}

@media (max-width: 540px) {
  .f-grid { grid-template-columns: 1fr; }
  .menu-list li { font-size: 40px; }
  .hero-title h1 { font-size: clamp(36px, 10.5vw, 56px); letter-spacing: -1px; }
}
