/* ==========================================================
   Architecture Open Studio — sistema visual "Open Instrument"
   Base monocromática + naranja como señal funcional.
   ========================================================== */
:root {
  --white: #ffffff;
  --paper: #f5f5f2;      /* Paper White */
  --ink: #101010;        /* Soft Black */
  --graphite: #252525;   /* Graphite */
  --grey: #d8d8d4;       /* Light Grey */
  --mute: #63635e;       /* texto secundario (AA sobre blanco) */
  --signal: #ff5a1f;     /* Signal Orange */
  --burnt: #c64a24;      /* Burnt Orange */
  --red: #e5341a;        /* extremo rojo del gradiente CTA */

  --font-sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --hh: 68px;            /* alto del header */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1280px;
  --grad-cta: linear-gradient(135deg, var(--signal) 0%, var(--red) 100%);
  --grad-dark:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 90, 31, .38) 0%, rgba(255, 90, 31, 0) 55%),
    radial-gradient(70% 90% at 0% 100%, rgba(198, 74, 36, .22) 0%, rgba(198, 74, 36, 0) 60%),
    var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mute { color: var(--mute); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hh);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey);
  transition: background .3s, color .3s, border-color .3s;
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.logo-mark {
  font-family: var(--font-mono); font-weight: 500; font-size: .8rem; letter-spacing: .08em;
  background: var(--ink); color: var(--white); padding: .35rem .5rem;
}
.logo-mark i { color: var(--signal); font-style: normal; }
.logo-name { font-size: .98rem; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: .5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--signal); }
.lang-btn, .menu-btn {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em;
  background: none; color: inherit; border: 1px solid currentColor;
  min-width: 48px; min-height: 44px; padding: 0 .8rem; cursor: pointer;
}
.lang-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.menu-btn { display: none; }
main { padding-top: var(--hh); }

/* ---------- Logo SVG ----------
   El SVG debe ser oscuro sobre transparente. En fondos oscuros se vuelve blanco con .on-dark
   (brightness(0) lo aplana a negro e invert(1) lo pasa a blanco). Si el archivo no existe,
   se muestra el logo de texto. */
.logo-img { height: 34px; width: auto; max-width: 190px; display: block; transition: filter .3s; }
.logo-img ~ .logo-mark, .logo-img ~ .logo-name { display: none; }
.on-dark, .dark-band .logo-img, .site-footer .logo-img, .contact-info .logo-img, .panel .logo-img { filter: brightness(0) invert(1); }
.site-footer .logo-img { margin-bottom: .9rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 54px; padding: 0 1.6rem;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer;
  background: transparent; color: var(--ink);
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-cta { background: var(--grad-cta); border-color: transparent; color: var(--ink); }
.btn-cta:hover { background: var(--grad-cta); color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(229, 52, 26, .35); }
.btn-light { border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn .arr { font-family: var(--font-mono); }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section.paper { background: var(--paper); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 60rem; }
.sec-tag { display: flex; align-items: center; gap: .75rem; color: var(--mute); }
.sec-tag::before { content: ""; width: 10px; height: 10px; background: var(--signal); border-radius: 50%; }
.sec-head h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.08; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.sec-head p { font-size: 1.125rem; color: var(--graphite); max-width: 46rem; }

/* ---------- Hero (index) ---------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.hero h1 { font-size: clamp(2.7rem, 7.6vw, 6.2rem); line-height: .98; font-weight: 600; letter-spacing: -.04em; margin: 1.25rem 0 1.5rem; text-wrap: balance; }
.hero h1 em { font-style: normal; background: var(--grad-cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 38rem; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.panel {
  background: var(--grad-dark); color: var(--white);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.panel-head { display: flex; justify-content: space-between; color: rgba(255, 255, 255, .65); padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.panel-head b { color: var(--signal); font-weight: 500; }
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: 1.25rem 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.stat:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
.stat dt { color: rgba(255, 255, 255, .65); }
.stat dd { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }

/* ---------- Tesis ---------- */
.thesis { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.thesis blockquote { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.12; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.questions li { padding: 1.1rem 0; border-top: 1px solid var(--grey); display: grid; grid-template-columns: 2.5rem 1fr; gap: .5rem; }
.questions li:last-child { border-bottom: 1px solid var(--grey); }
.questions .mono { color: var(--burnt); padding-top: .3rem; }

/* ---------- Proyectos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.chip {
  font-family: var(--font-sans); font-size: .95rem; font-weight: 500;
  min-height: 46px; padding: 0 1.1rem; border: 1px solid var(--grey); background: var(--white); color: var(--ink);
  border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.grid-proj { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.75rem); }
.card { text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img img { transform: scale(1.045); }
.card-img .go {
  position: absolute; right: .75rem; bottom: .75rem; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--grad-cta); color: var(--ink); font-family: var(--font-mono);
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.card:hover .go, .card:focus-visible .go { opacity: 1; transform: none; }
.card-body { padding-top: .9rem; }
.card-body h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin: .3rem 0 .2rem; }
.card-body p { font-size: .95rem; color: var(--mute); }
.ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem;
  background:
    radial-gradient(80% 110% at 100% 0%, rgba(255, 90, 31, .22), rgba(255, 90, 31, 0) 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(16, 16, 16, .06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(16, 16, 16, .06) 39px 40px),
    var(--paper);
  color: var(--graphite);
}
.ph strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }

/* ---------- Capacidades ---------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.level { border: 1px solid var(--grey); background: var(--white); padding: clamp(1.5rem, 2.6vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; }
.level .mono { color: var(--burnt); }
.level h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.level p { color: var(--graphite); }
.level ul { margin-top: auto; border-top: 1px solid var(--grey); padding-top: 1rem; display: grid; gap: .45rem; font-size: .98rem; }
.level li { display: flex; gap: .6rem; }
.level li::before { content: "—"; color: var(--signal); }
.level.dark { background: var(--grad-dark); color: var(--white); border-color: transparent; }
.level.dark p { color: rgba(255, 255, 255, .82); }
.level.dark .mono { color: var(--signal); }
.level.dark ul { border-color: rgba(255, 255, 255, .2); }

.terr { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.terr > div { padding: 1.5rem 1.25rem 0 0; }
.terr h4 { font-size: 1.15rem; font-weight: 600; margin: .5rem 0 .4rem; }
.terr p { font-size: .98rem; color: var(--graphite); }
.terr .mono { color: var(--mute); }

/* ---------- Manifiesto ---------- */
.dark-band { background: var(--grad-dark); color: var(--white); }
.dark-band .sec-tag, .dark-band .mute { color: rgba(255, 255, 255, .65); }
.dark-band .sec-head p { color: rgba(255, 255, 255, .85); }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
.principles li { padding: 1.6rem 0; border-top: 1px solid rgba(255, 255, 255, .2); display: grid; grid-template-columns: 3rem 1fr; }
.principles .mono { color: var(--signal); padding-top: .45rem; }
.principles h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: .35rem; }
.principles p { color: rgba(255, 255, 255, .8); }

/* ---------- Estudio ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); }
.about-card { border: 1px solid var(--grey); padding: 1.75rem; background: var(--white); align-self: start; }
.about-card h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin: .5rem 0 .25rem; }
.about-card a { display: inline-block; margin-top: 1.25rem; color: var(--burnt); font-weight: 600; }
.about-text p + p { margin-top: 1.1rem; }
.about-text .lead { font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }
.model { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
.model div { border-top: 1px solid var(--grey); padding-top: .9rem; }
.model h4 { font-size: 1.05rem; font-weight: 600; margin: .3rem 0 .2rem; }
.model p { font-size: .98rem; color: var(--graphite); }

/* ---------- Recursos ---------- */
.res li { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--grey); }
.res li:last-child { border-bottom: 1px solid var(--grey); }
.res strong { font-size: 1.15rem; font-weight: 600; }
.res p { color: var(--mute); font-size: .98rem; }
.res a { flex: none; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; border: 1px solid var(--grey); }
.contact-info { background: var(--grad-dark); color: var(--white); padding: clamp(1.75rem, 4vw, 3.25rem); display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; font-weight: 600; letter-spacing: -.025em; }
.contact-info p { color: rgba(255, 255, 255, .85); }
.contact-info .mono { color: rgba(255, 255, 255, .65); display: block; margin-bottom: .3rem; }
.contact-info a.mail { font-size: 1.3rem; font-weight: 600; color: var(--white); text-decoration-color: var(--signal); text-underline-offset: 5px; }
.contact-info .btn { align-self: flex-start; margin-top: auto; }
form { padding: clamp(1.75rem, 4vw, 3.25rem); display: grid; gap: 1.25rem; background: var(--white); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: .4rem; }
label small { font-weight: 400; color: var(--mute); }
input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--grey); padding: .9rem 1rem; min-height: 54px; border-radius: 0;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px rgba(255, 90, 31, .3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { display: none; padding: 1rem 1.1rem; font-weight: 500; border-left: 4px solid var(--signal); background: var(--paper); }
.form-status.show { display: block; }
.form-status.ok { border-color: #1f7a3d; }
.form-status.err { border-color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 3rem 0 2rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot strong { color: var(--white); font-size: 1.2rem; display: block; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot a { color: var(--white); text-decoration: none; padding: .4rem 0; }
.foot a:hover { color: var(--signal); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }

/* ==========================================================
   Página de proyecto
   ========================================================== */
.p-hero { position: relative; height: 80vh; min-height: 420px; background: var(--ink); color: var(--white); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(16, 16, 16, .35) 0%, rgba(16, 16, 16, 0) 28%, rgba(16, 16, 16, 0) 50%, rgba(16, 16, 16, .78) 100%); }
.p-hero.empty { background: var(--grad-dark); }
.p-hero-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.p-hero-text .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.p-hero h1 { font-size: clamp(2.3rem, 6.5vw, 5.2rem); line-height: 1; font-weight: 600; letter-spacing: -.035em; margin-top: .6rem; text-wrap: balance; }
.p-hero .mono { color: rgba(255, 255, 255, .85); }
.s-ctrl { display: flex; align-items: center; gap: .6rem; flex: none; }
.s-ctrl button { width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .7); background: rgba(16, 16, 16, .35); color: var(--white); font-family: var(--font-mono); font-size: 1rem; cursor: pointer; }
.s-ctrl button:hover { background: var(--grad-cta); border-color: transparent; color: var(--ink); }
.s-count { min-width: 4.5rem; text-align: center; }
.down {
  display: none; position: absolute; z-index: 3; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--grad-cta); color: var(--ink);
  font-size: 1.4rem; cursor: pointer; text-decoration: none; place-items: center;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

.p-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 5rem); }
.spec { border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--grey); }
.spec dt { color: var(--mute); padding-top: .2rem; }
.spec dd { font-weight: 500; }
.p-desc { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--graphite); }
.p-desc p + p { margin-top: 1.1rem; }
.p-desc h2, .p-desc h3 { font-size: 1.4rem; margin: 1.5rem 0 .5rem; color: var(--ink); }
.back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; text-decoration: none; font-weight: 600; margin-bottom: 1.5rem; }
.back:hover { color: var(--burnt); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); }
.gallery figure { margin: 0; background: var(--paper); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery figure:nth-child(3n + 1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.fade { opacity: 0; transform: translateY(22px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.fade.in { opacity: 1; transform: none; }

.planos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.5rem); }
.plano { position: relative; display: block; background: var(--white); border: 1px solid var(--grey); padding: clamp(.75rem, 2vw, 1.5rem) clamp(.75rem, 2vw, 1.5rem) 3rem; aspect-ratio: 4 / 3; text-decoration: none; }
.plano:first-child:nth-last-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.plano img { width: 100%; height: 100%; object-fit: contain; }
.plano .mono { position: absolute; left: clamp(.75rem, 2vw, 1.5rem); bottom: .9rem; color: var(--mute); }
.plano:hover { border-color: var(--ink); }
.plano:hover .mono { color: var(--burnt); }

.cta-box { background: var(--grad-dark); color: var(--white); padding: clamp(2rem, 6vw, 4.5rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.cta-box h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.08; font-weight: 600; letter-spacing: -.025em; max-width: 34rem; }
.cta-box p { color: rgba(255, 255, 255, .8); margin-top: .75rem; max-width: 34rem; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; margin-top: clamp(3rem, 6vw, 5rem); }
.next strong { display: block; font-size: clamp(1.7rem, 4.5vw, 3.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.next .arr { font-family: var(--font-mono); font-size: 2rem; transition: transform .25s; }
.next:hover .arr { transform: translateX(8px); color: var(--signal); }
.notfound { padding: 6rem 0; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1000px) {
  .hero-grid, .thesis, .about, .contact, .p-intro { grid-template-columns: minmax(0, 1fr); }
  .grid-proj { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .levels { grid-template-columns: minmax(0, 1fr); }
  .terr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: var(--hh) 0 0 0; height: calc(100dvh - var(--hh));
    background: var(--white); color: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 2rem;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav-open .nav { transform: none; }
  .nav-open { overflow: hidden; }
  .nav a { font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; padding: 1.1rem 0; border-bottom: 1px solid var(--grey); }
  .nav .lang-btn { margin-top: 1.5rem; align-self: flex-start; min-height: 52px; padding: 0 1.25rem; }
  .logo-name { display: none; }
  .hero-actions .btn, .cta-box .btn { width: 100%; }
  .principles, .model, .row2 { grid-template-columns: minmax(0, 1fr); }
  .terr { grid-template-columns: minmax(0, 1fr); }
  .res li { flex-direction: column; align-items: flex-start; }

  /* Proyecto en móvil: foto a pantalla completa + botón de bajar */
  .page-proyecto main { padding-top: 0; }
  .page-proyecto .site-header.is-top:not(.menu-on) { background: transparent; border-color: transparent; color: var(--white); backdrop-filter: none; }
  .page-proyecto .site-header.is-top:not(.menu-on) .logo-img { filter: brightness(0) invert(1); }
  .page-proyecto .site-header.is-top:not(.menu-on) .logo-mark { background: var(--white); color: var(--ink); }
  .p-hero { height: 100vh; height: 100svh; }
  .p-hero-text { padding-bottom: 6.5rem; }
  .s-ctrl { display: none; }
  .down { display: grid; }
  .gallery, .planos { grid-template-columns: minmax(0, 1fr); }
  .plano, .plano:first-child:nth-last-child(odd) { aspect-ratio: 1 / 1; }
  .gallery figure, .gallery figure:nth-child(3n + 1) { aspect-ratio: 4 / 5; }
  .spec div { grid-template-columns: 6.5rem 1fr; }
}
@media (max-width: 560px) {
  .grid-proj { grid-template-columns: minmax(0, 1fr); }
  .card-img .go { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
  .slide { transition: none; }
  .down { animation: none; }
  .card-img img { transition: none; }
}
