/* =========================================================
   PROLYCO · Prototipo Home
   Tokens de marca según la Guía de Marca
   ========================================================= */

/* Inter alojada en el propio servidor (sin conexiones a Google Fonts). Licencia OFL. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "HS Squos";
  src: url("../fonts/hs-squos.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marca */
  --orange: #E9571D;
  --orange-700: #C44E26;
  --orange-300: #F2997A;
  --orange-100: #F9DED4;
  --ink: #222323;

  /* Tipografía */
  --font-display: "HS Squos", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Ritmo */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Estilo A · Claro ---------- */
[data-theme="claro"] {
  --bg: #F6F4F1;
  --bg-alt: #FFFFFF;
  --bg-strong: #222323;
  --text: #222323;
  --text-soft: #5E6060;
  --text-on-strong: #F6F4F1;
  --rule: rgba(34, 35, 35, .14);
  --draw: rgba(34, 35, 35, .55);
  --draw-faint: rgba(34, 35, 35, .18);
  --logo-name: #E9571D;
  --header-bg: rgba(246, 244, 241, .92);
}

/* ---------- Estilo B · Oscuro ---------- */
[data-theme="oscuro"] {
  --bg: #141515;
  --bg-alt: #1B1C1C;
  --bg-strong: #E9571D;
  --text: #EEECE8;
  --text-soft: #9C9E9E;
  --text-on-strong: #FFFFFF;
  --rule: rgba(255, 255, 255, .12);
  --draw: rgba(255, 255, 255, .5);
  --draw-faint: rgba(255, 255, 255, .14);
  --logo-name: #FFFFFF;
  --header-bg: rgba(20, 21, 21, .9);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.center { text-align: center; margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--text); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--orange); display: inline-block; }

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 28px;
  font: 500 .95rem/1 var(--font-body); letter-spacing: .02em;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .88rem; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary::before { background: var(--orange-700); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light::before { background: #fff; }
.btn-ghost-light:hover { color: var(--ink); border-color: #fff; }
.btn-outline { color: var(--text); border-color: var(--text); }
.btn-outline::before { background: var(--text); }
.btn-outline:hover { color: var(--bg); }

.link-arrow {
  display: inline-flex; gap: 10px; align-items: center;
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--orange); padding-bottom: 4px;
}
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* =========================================================
   CABECERA
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  --logo-name-header: #fff;
  color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease), box-shadow .4s;
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 92px; transition: height .4s var(--ease); }
.brand { display: block; line-height: 0; margin-right: auto; }
.logo { width: 230px; height: 52px; --logo-name: #fff; transition: --logo-name .4s; }
.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: .92rem; font-weight: 500; text-decoration: none; position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.site-header.is-scrolled {
  background: var(--header-bg); color: var(--text);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header.is-scrolled .header-inner { height: 72px; }
.site-header.is-scrolled .logo { --logo-name: var(--logo-name-theme, #E9571D); }
[data-theme="claro"] .site-header.is-scrolled .logo { --logo-name: #222323; }
[data-theme="oscuro"] .site-header.is-scrolled .logo { --logo-name: #fff; }
.site-header.is-hidden { transform: translateY(-100%); }

.nav-toggle { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden; background: #111;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(1.12); animation: heroZoom 9s var(--ease) forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 22%),
    linear-gradient(0deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.35) 45%, rgba(10,10,10,0) 70%);
}
.hero-content { position: relative; padding-bottom: clamp(40px, 7vh, 80px); }
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10.5vw, 9.6rem);
  line-height: .95; letter-spacing: -.015em;
  margin: 0;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-arc { display: block; width: min(560px, 70%); height: 28px; margin: 6px 0 26px; overflow: visible; }
.hero-arc path {
  fill: none; stroke: var(--orange); stroke-width: 3; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.6s .9s var(--ease) forwards;
}
.hero-lead { max-width: 560px; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: rgba(255,255,255,.86); margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-foot {
  position: relative; display: flex; justify-content: space-between; align-items: flex-end;
  padding-block: 22px 28px; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-project { display: grid; gap: 2px; font-size: .86rem; }
.hero-project .label { color: rgba(255,255,255,.6); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.scroll-cue { display: flex; align-items: center; gap: 14px; text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 44px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--orange); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Entrada del hero */
.hero-anim { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--d, 0s) var(--ease) forwards; }
.hero-title .hero-anim { transform: translateY(105%); opacity: 1; animation-name: riseMask; animation-duration: 1.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes riseMask { to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =========================================================
   LÍNEAS DE PLANO (blueprint) que se dibujan
   ========================================================= */
.blueprint {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: visible;
}
.blueprint path { fill: none; stroke-linecap: round; --len: 1; }
.blueprint .ln-guide  { stroke: var(--draw-faint); stroke-width: .6; }
.blueprint .ln-main   { stroke: var(--draw); stroke-width: .9; }
.blueprint .ln-detail { stroke: var(--draw-faint); stroke-width: .7; }
.blueprint .ln-accent { stroke: var(--orange); stroke-width: 1.2; }
.blueprint path {
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset var(--dur, 1.6s) var(--delay, 0s) cubic-bezier(.55, .1, .25, 1);
}
.blueprint.is-drawn path { stroke-dashoffset: 0; }

/* =========================================================
   NOSOTROS
   ========================================================= */
.intro { overflow: hidden; }
.intro .container { position: relative; z-index: 1; }
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.intro-body p { color: var(--text-soft); max-width: 520px; }
.intro-body .lead { color: var(--text); margin-top: 0; }
.intro-body .link-arrow { margin-top: 12px; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(72px, 9vw, 128px); border-top: 1px solid var(--rule);
}
.pillar { padding: 36px 36px 8px 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--rule); }
.pillar-num { font-family: var(--font-display); color: var(--orange); font-size: .95rem; }
.pillar h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); margin: 18px 0 12px; }
.pillar p { color: var(--text-soft); margin: 0; max-width: 34ch; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(64px, 8vw, 112px);
}
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 1; color: var(--orange);
}
.stat span { display: block; margin-top: 10px; font-size: .86rem; color: var(--text-soft); letter-spacing: .04em; }

/* =========================================================
   PROYECTOS
   ========================================================= */
.projects { background: var(--bg-alt); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-intro { max-width: 420px; color: var(--text-soft); margin: 0; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button {
  font: 500 .86rem var(--font-body); color: var(--text-soft);
  background: none; border: 1px solid var(--rule); border-radius: 100px;
  padding: 10px 18px; cursor: pointer; transition: all .3s var(--ease);
}
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button[aria-selected="true"] { background: var(--text); color: var(--bg-alt); border-color: var(--text); }

.project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px);
  grid-auto-flow: dense;
}
.project { text-decoration: none; display: block; }
.project.is-wide { grid-column: span 2; }
.project figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--rule); position: relative; }
.project.is-wide figure { aspect-ratio: auto; height: 100%; max-height: calc((100% - 0px)); }
.project figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.project figure::after {
  content: "Ver proyecto"; position: absolute; left: 20px; bottom: 20px;
  background: var(--orange); color: #fff; font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  padding: 10px 16px; transform: translateY(12px); opacity: 0; transition: all .45s var(--ease);
}
.project:hover figure img { transform: scale(1.06); }
.project:hover figure::after { transform: none; opacity: 1; }
.project-meta { padding-top: 16px; display: grid; gap: 4px; }
.project-meta .cat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 500; }
.project-meta h3 { font-size: 1.12rem; font-weight: 500; }
.project.is-wide { display: grid; grid-template-rows: 1fr auto; }
.project.is-wide figure { aspect-ratio: 16 / 8.6; height: auto; }
.project.is-hidden { display: none; }
.project.is-filtering { animation: fadeUp .6s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =========================================================
   ESPECIALIDADES
   ========================================================= */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.service-list li { border-bottom: 1px solid var(--rule); }
.service-list a {
  display: grid; grid-template-columns: 70px 1.2fr 1fr 40px; align-items: center; gap: 24px;
  padding: 30px 0; text-decoration: none; position: relative;
  transition: padding .5s var(--ease), color .3s;
}
.service-list .n { font-family: var(--font-display); color: var(--orange); font-size: .95rem; }
.service-list .t { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 2.3rem); line-height: 1.1; }
.service-list .d { color: var(--text-soft); font-size: .95rem; }
.service-list .a { justify-self: end; font-size: 1.3rem; transition: transform .45s var(--ease), color .3s; }
.service-list a:hover { padding-left: 18px; }
.service-list a:hover .a { transform: translateX(6px); color: var(--orange); }
.service-list a:hover .t { color: var(--orange); }

.service-preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 4/3; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .35s var(--ease), transform .35s var(--ease);
  overflow: hidden;
}
.service-preview img { width: 100%; height: 100%; object-fit: cover; }
.service-preview.is-on { opacity: 1; }

/* =========================================================
   EXPOSICIÓN
   ========================================================= */
.showroom { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg-strong); color: var(--text-on-strong); }
.showroom-media { min-height: 560px; overflow: hidden; }
.showroom-media img { width: 100%; height: 100%; object-fit: cover; }
.showroom-body { padding: clamp(48px, 7vw, 112px) clamp(24px, 6vw, 96px); align-self: center; }
.showroom .eyebrow { color: inherit; opacity: .75; }
[data-theme="oscuro"] .showroom .eyebrow .dot { background: #fff; }
.showroom p { opacity: .82; max-width: 460px; }
.showroom address { margin: 28px 0; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; }
[data-theme="oscuro"] .showroom .link-arrow { border-color: #fff; }

/* =========================================================
   BLOG
   ========================================================= */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.post { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.post figure { margin: 0 0 8px; aspect-ratio: 4/3; overflow: hidden; background: var(--rule); }
.post figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover figure img { transform: scale(1.05); }
.post h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.35; }
.post:hover h3 { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.post-cat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 500; }
.post-date { font-size: .84rem; color: var(--text-soft); }
.post-type {
  background: var(--orange); color: #fff; padding: 32px; justify-content: space-between;
  aspect-ratio: auto; min-height: 100%;
}
.post-type .post-cat, .post-type .post-date { color: rgba(255,255,255,.85); }
.post-type h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 400; line-height: 1.12; margin-top: auto; }
.post-type:hover h3 { text-decoration-color: #fff; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: var(--bg-alt); overflow: hidden; }
.contact .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.contact-head .lead { color: var(--text-soft); margin: 24px 0 36px; max-width: 440px; }
.contact-phone {
  display: inline-block; font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  text-decoration: none; color: var(--orange); margin-bottom: 14px;
}
.contact-head address { color: var(--text-soft); font-size: .92rem; }
.contact-form { display: grid; gap: 22px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.field input, .field select, .field textarea {
  font: 400 1rem var(--font-body); color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 12px 0; border-radius: 0; outline: none; transition: border-color .3s;
}
.field select option { color: #222323; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--orange); }
.check { display: flex; gap: 10px; font-size: .88rem; color: var(--text-soft); align-items: center; }
.check input { accent-color: var(--orange); width: 16px; height: 16px; }
.contact-form .btn { justify-self: start; }

/* =========================================================
   PIE
   ========================================================= */
.site-footer { background: #161717; color: #C9C9C7; padding-top: clamp(72px, 9vw, 120px); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; }
.logo-v { width: 150px; height: 123px; --logo-name: #fff; }
.site-footer h4 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #7E8080; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 28px 36px; }
.feder { font-size: .74rem; line-height: 1.6; color: #7E8080; max-width: 980px; margin: 0 0 22px; }
.legal-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #7E8080; }
.legal-row nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* =========================================================
   REVELADO AL HACER SCROLL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--rd, 0s) var(--ease), transform 1s var(--rd, 0s) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   SELECTOR DE ESTILO (solo prototipo)
   ========================================================= */
.style-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 100;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: #222323; color: #fff; border-radius: 100px; box-shadow: 0 8px 30px rgba(0,0,0,.25);
  font: 500 .78rem var(--font-body);
}
.style-switch span { padding: 0 8px 0 10px; opacity: .6; letter-spacing: .1em; text-transform: uppercase; font-size: .68rem; }
.style-switch button { font: inherit; color: #fff; background: none; border: 0; padding: 8px 14px; border-radius: 100px; cursor: pointer; }
.style-switch button[aria-pressed="true"] { background: var(--orange); }
.style-switch [data-replay] { opacity: .7; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 7px; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; color: inherit;
  }
  .nav-toggle span { width: 26px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .nav-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav-open .main-nav {
    display: flex; flex-direction: column; gap: 8px;
    position: fixed; inset: 0; z-index: -1; padding: 120px var(--gutter) 40px;
    background: var(--bg); color: var(--text);
  }
  .nav-open .main-nav a { font-family: var(--font-display); font-size: 2rem; }
  .site-header.nav-open { color: var(--text); }
  .site-header.nav-open .logo { --logo-name: var(--text); }

  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .service-list a { grid-template-columns: 50px 1fr 30px; }
  .service-list .d { display: none; }
  .showroom { grid-template-columns: 1fr; }
  .showroom-media { min-height: 360px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-type { grid-column: span 2; min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .service-preview { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { height: 76px; }
  .logo { width: 180px; height: 41px; }
  .hero-foot .hero-project { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--rule); }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .project-grid { grid-template-columns: 1fr; }
  .project.is-wide { grid-column: auto; }
  .project.is-wide figure { aspect-ratio: 4/3.2; }
  .post-grid { grid-template-columns: 1fr; }
  .post-type { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .style-switch { left: 50%; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .hero-anim { opacity: 1; transform: none; }
}

/* =========================================================
   AJUSTES TRAS REVISIÓN 1
   ========================================================= */
/* HS Squos dibuja el 0 con barra (Ø): las cifras van en Inter */
.stat strong { font-family: var(--font-body); font-weight: 300; letter-spacing: -.04em; }
.pillar-num, .service-list .n { font-family: var(--font-body); font-weight: 500; font-size: .85rem; letter-spacing: .08em; }

/* Rejilla de proyectos: misma altura de foto en cada fila */
.project figure, .project.is-wide figure { aspect-ratio: auto; height: clamp(240px, 27vw, 400px); max-height: none; }
.project.is-wide { display: block; }

/* Líneas de plano más sutiles y fundidas hacia los textos */
[data-theme="claro"] { --draw: rgba(34, 35, 35, .38); --draw-faint: rgba(34, 35, 35, .13); }
[data-theme="oscuro"] { --draw: rgba(255, 255, 255, .34); --draw-faint: rgba(255, 255, 255, .1); }
.intro .blueprint {
  -webkit-mask-image: radial-gradient(ellipse 62% 78% at 78% 100%, #000 35%, transparent 80%);
          mask-image: radial-gradient(ellipse 62% 78% at 78% 100%, #000 35%, transparent 80%);
}
.contact .blueprint {
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 85%);
          mask-image: linear-gradient(90deg, transparent 45%, #000 85%);
}

/* Exposición: mitad y mitad */
.showroom { grid-template-columns: 1fr 1fr; }

@media (max-width: 640px) {
  .project figure, .project.is-wide figure { height: 280px; }
}
.showroom address { font-family: var(--font-body); font-weight: 300; font-size: 1.2rem; }
@media (max-width: 1024px) {
  .showroom { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 11vw; }
  .style-switch { font-size: .72rem; padding: 4px; }
  .style-switch span { display: none; }
}

/* =========================================================
   AJUSTES TRAS REVISIÓN 2
   ========================================================= */

/* HS Squos dibuja mal ? ¿ : → esos signos se muestran en Inter automáticamente.
   Se redefine la fuente excluyéndolos con unicode-range. */
@font-face {
  font-family: "HS Squos Web";
  src: url("../fonts/hs-squos.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0020-0039, U+003B-003E, U+0040-00BE, U+00C0-024F, U+2010-2027, U+20AC;
}
:root { --font-display: "HS Squos Web", "Inter", system-ui, sans-serif; }

/* Hero: el titular se adapta también al alto de pantalla y nunca se mete bajo la cabecera */
.hero { padding-top: 120px; }
.hero-title { font-size: clamp(2.6rem, min(9.5vw, 15.5vh), 9rem); }
.hero-lead { margin-bottom: 28px; }
.hero-arc { margin: 4px 0 20px; }

/* Nosotros: texto a la izquierda, dibujo en su propio hueco a la derecha */
.intro-grid { grid-template-columns: 1fr 1fr; align-items: center; }
.intro-text { display: grid; gap: 36px; }
.intro-drawing { position: relative; height: clamp(380px, 42vw, 620px); }
.intro-drawing .blueprint { position: absolute; inset: 0; }
.intro .blueprint {
  -webkit-mask-image: linear-gradient(0deg, #000 70%, transparent 100%);
          mask-image: linear-gradient(0deg, #000 70%, transparent 100%);
}

/* Especialidades: miniatura en su propia columna, sin tapar texto */
.service-list a { grid-template-columns: 70px 1.3fr 1fr 112px 32px; }
.service-list .thumb {
  width: 112px; height: 72px; overflow: hidden;
  clip-path: inset(0 0 0 100%); transition: clip-path .55s var(--ease);
}
.service-list .thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform .8s var(--ease); }
.service-list a:hover .thumb { clip-path: inset(0 0 0 0); }
.service-list a:hover .thumb img { transform: scale(1); }
.service-list a:hover { padding-left: 0; }

/* Contacto sin dibujo de fondo */
.contact .blueprint { display: none; }

@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-drawing { height: 340px; }
  .service-list a { grid-template-columns: 50px 1fr 30px; }
  .service-list .thumb { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 96px; }
  .hero-title { font-size: 11vw; }
  .intro-drawing { height: 260px; }
}
.intro-drawing { overflow: hidden; }
.intro-drawing .blueprint { overflow: hidden; }
.intro-drawing { --draw: rgba(34, 35, 35, .5); --draw-faint: rgba(34, 35, 35, .16); }
