/* ══ Fuentes autoalojadas (antes Google Fonts) ══ */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/inter-400-latinext.woff2') format('woff2');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:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/inter-400-latin.woff2') format('woff2');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';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/inter-400-latinext.woff2') format('woff2');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:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/inter-400-latin.woff2') format('woff2');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:'Space Grotesk';font-style:normal;font-weight:300;font-display:swap;src:url('../assets/fonts/space-grotesk-300-latinext.woff2') format('woff2');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:'Space Grotesk';font-style:normal;font-weight:300;font-display:swap;src:url('../assets/fonts/space-grotesk-300-latin.woff2') format('woff2');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:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/space-grotesk-300-latinext.woff2') format('woff2');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:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/space-grotesk-300-latin.woff2') format('woff2');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:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/space-grotesk-300-latinext.woff2') format('woff2');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:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/space-grotesk-300-latin.woff2') format('woff2');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;}

/* ═══════════════════════════════════════════════════════════
   Shield Solutions — sistema de diseño (de Claude Design)
   Solo blanco y negro. Fotos de proyectos EN COLOR.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #FAFAF9;
  --ink: #0F0F0F;
  --white: #FFFFFF;
  --meta-light: #8A8A8A;
  --meta-dark: #A0A0A0;
  --num-light: #B8B6B2;
  --num-big-light: #D8D6D2;
  --num-dark: #3A3A3A;
  --line-light: #E4E2DE;
  --line-dark: #2A2A2A;
  --grey-body: #55534F;
  --grey-nav: #C9C9C9;
  --grey-dim: #6E6E6E;
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
  --pad-x: 64px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
/* Solo cargamos Inter 400/500 y Space Grotesk 300/400/500: cualquier
   <strong> a 600/700 se renderiza como falsa negrita. El énfasis del sitio
   es por color, no por grosor, así que fijamos el peso máximo real. */
strong { font-weight: 500; }

.sg { font-family: 'Space Grotesk', sans-serif; }

/* Etiquetas / metadatos en mayúsculas pequeñas */
.label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--meta-light);
}

@keyframes rvl { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes fd  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

/* ══ NAV ══ */
#ss-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--pad-x);
  background: transparent;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}
#ss-nav.is-scrolled {
  background: rgba(15, 15, 15, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 16px var(--pad-x);
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-brand img { height: 38px; width: auto; }
.nav-brand span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500; font-size: 13px; letter-spacing: 0.28em;
  color: var(--bg); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-link {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey-nav); transition: color 0.3s;
}
.nav-link:hover { color: var(--white); }
.nav-link.is-active { color: var(--white); border-bottom: 1px solid var(--white); padding-bottom: 3px; }
.nav-lang { display: flex; align-items: center; gap: 10px; padding-left: 28px; border-left: 1px solid var(--num-dark); }
.nav-lang .on  { font-size: 11px; letter-spacing: 0.12em; color: var(--white); cursor: pointer; }
.nav-lang .off { font-size: 11px; letter-spacing: 0.12em; color: var(--grey-dim); cursor: pointer; transition: color 0.3s; }
.nav-lang .off:hover { color: var(--white); }

/* Botón hamburguesa (solo móvil) */
#ss-menu-btn {
  display: none;
  background: none; border: none; cursor: pointer; padding: 8px;
}
#ss-menu-btn span {
  display: block; width: 26px; height: 1px; background: var(--bg); margin: 7px 0;
}
#ss-menu {
  display: none;
}

/* ══ CABECERA DE PÁGINA ══ */
.page-head {
  position: relative;
  background: var(--ink); color: var(--bg);
  overflow: hidden;
  display: flex; align-items: center;
  min-height: 66vh;
}
.page-head .fx { position: absolute; right: 0; top: 0; width: 46%; height: 70%; pointer-events: none; }

/* ── Logo 3D de cristal (banners) ── */
.logo3d {
  position: absolute; right: 2%; top: 0; bottom: 0;
  width: min(44%, 560px); z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0; transition: opacity 1.6s ease 0.3s;
}
.logo3d.is-on { opacity: 1; }
/* Solo "Sobre nosotros": escudo un poco más a la derecha (título ancho) */
.logo3d.logo3d-shift { transform: translateX(7%); }
.logo3d canvas { width: 100%; height: 100%; display: block; }
.page-head-inner {
  position: relative; z-index: 2; width: 100%;
  padding: 118px var(--pad-x) 92px var(--pad-x);
  box-sizing: border-box;
}
.page-head .kicker {
  display: flex; align-items: center; gap: 18px; margin-bottom: 36px;
  animation: fd 1s ease 0.35s both;
}
.page-head .kicker .dash { display: inline-block; width: 44px; height: 1px; background: var(--bg); }
.page-head .kicker .txt {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--meta-dark);
}
.page-head h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: clamp(72px, 10vw, 160px);
  line-height: 1; letter-spacing: 0.02em; text-transform: uppercase;
}
.page-head h1 .mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.page-head h1 .line { display: block; }
/* Con JS + movimiento, el título arranca oculto y lo revela el typing
   (evita el flash del reveal deslizante antes de que cargue main.js). */
html.tw-on .page-head h1 .line, html.tw-on .hero h1 .line { opacity: 0; }
/* Título de una sola línea (p. ej. "Sobre nosotros") */
.page-head h1.one { font-size: clamp(34px, 8vw, 116px); }
.page-head h1.one .line { white-space: nowrap; }

/* Cursor del efecto máquina de escribir (headers) */
.tw-caret {
  display: inline-block; width: 0.055em; height: 0.72em;
  margin-left: 0.04em; background: currentColor; vertical-align: baseline;
  animation: twBlink 1.05s steps(1) infinite;
}
@keyframes twBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ══ LISTADO DE PROYECTOS ══ */
.projects { background: var(--bg); padding: 150px var(--pad-x) 170px var(--pad-x); }

.project {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 72px;
  align-items: end;
  padding-bottom: 150px;
}
.project:last-child { padding-bottom: 0; }
.project.flip { grid-template-columns: 4fr 7fr; }
.project.flip .p-info { order: 1; }
.project.flip .p-img  { order: 2; }

.p-img { overflow: hidden; }
.p-img img {
  width: 100%; height: 600px; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.p-img:hover img { transform: scale(1.04); }

.p-num { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 15px; color: var(--num-light); }
.p-info h2 {
  margin: 14px 0 0 0;
  font-family: 'Space Grotesk', sans-serif; font-weight: 400;
  font-size: clamp(30px, 2.6vw, 42px);
  letter-spacing: -0.015em;
}
.p-tag {
  margin-top: 8px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--meta-light);
}
.p-ficha { margin-top: 36px; }
.p-row {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line-light);
}
.p-row:last-child { border-bottom: 1px solid var(--line-light); }
.p-row .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta-light); }
.p-row .v { font-size: 14px; }

/* ══ CTA ══ */
.cta {
  position: relative;
  background: var(--ink); color: var(--bg);
  padding: 170px var(--pad-x);
  overflow: hidden;
}
.cta .fx { position: absolute; left: 0; bottom: 0; width: 38%; height: 52%; pointer-events: none; }
.cta-link {
  position: relative; z-index: 2;
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif; font-weight: 400;
  font-size: clamp(44px, 5vw, 84px);
  line-height: 1.1; letter-spacing: -0.03em; color: var(--bg);
}
.cta-link .arrow { display: inline-block; font-weight: 300; transition: transform 0.5s var(--ease); }
.cta-link:hover .arrow { transform: translateX(16px); }

/* ══ FOOTER ══ */
footer {
  position: relative;
  background: var(--ink); color: var(--bg);
  padding: 130px var(--pad-x) 46px var(--pad-x);
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
}
footer .fx { position: absolute; right: 0; top: 0; width: 46%; height: 62%; pointer-events: none; }
.foot-main {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; gap: 80px;
  align-items: start;
  padding-bottom: 110px;
}
.foot-main img { height: 52px; width: auto; }
.foot-claim {
  margin: 44px 0 0 0; max-width: 620px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 300;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.3; letter-spacing: -0.015em;
  color: var(--meta-dark);
}
.foot-claim strong { color: var(--white); font-weight: 300; }
.foot-links { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.foot-links a {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--meta-dark); transition: color 0.3s;
}
.foot-links a:hover { color: var(--white); }
.foot-bar {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.foot-bar span, .foot-bar a { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-dim); }
.foot-bar a { color: var(--meta-dark); transition: color 0.3s; }
.foot-bar a:hover { color: var(--white); }

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
  .project, .project.flip { gap: 48px; }
  .p-img img { height: 480px; }
}

@media (max-width: 820px) {
  :root { --pad-x: 24px; }

  .nav-links { display: none; }
  #ss-menu-btn { display: block; }
  #ss-menu {
    display: flex;
    position: fixed; inset: 0; z-index: 40;
    background: var(--ink);
    flex-direction: column; justify-content: center; gap: 28px;
    padding: 0 var(--pad-x);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  #ss-menu.is-open { transform: translateX(0); }
  #ss-menu a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px; font-weight: 400; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--bg);
  }
  #ss-menu .lang { display: flex; gap: 18px; margin-top: 24px; }
  #ss-menu .lang span { font-size: 13px; letter-spacing: 0.12em; }
  #ss-menu .lang .on { color: var(--white); }
  #ss-menu .lang .off { color: var(--grey-dim); }

  .page-head { min-height: 52vh; }
  .page-head-inner { padding: 140px var(--pad-x) 56px var(--pad-x); }

  .projects { padding: 90px var(--pad-x) 110px var(--pad-x); }
  .project, .project.flip {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 100px;
  }
  .project.flip .p-info { order: 2; }
  .project.flip .p-img  { order: 1; }
  .p-img img { height: 340px; }

  .cta { padding: 110px var(--pad-x); }

  footer { padding: 90px var(--pad-x) 36px var(--pad-x); }
  .foot-main { grid-template-columns: 1fr; gap: 48px; padding-bottom: 70px; }
  .foot-bar { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   INICIO (home) — secciones propias
   ═══════════════════════════════════════════════════════════ */
@keyframes imgIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  background: var(--ink); color: var(--bg);
  overflow: hidden; display: flex; align-items: center;
}
.hero-inner {
  position: relative; z-index: 2; width: 100%; box-sizing: border-box;
  padding: 104px var(--pad-x) 72px;
  display: grid; grid-template-columns: 0.62fr 1.38fr; align-items: center;
  gap: clamp(16px, 2vw, 36px);
}
/* El vídeo se funde con el fondo: máscara suave en los bordes para que no
   se lea como un rectángulo incrustado (el negro del clip ≈ --ink, pero la
   compresión delata el borde sin esto). */
/* El ancho = alto (1:1), así que se limita restando los paddings verticales
   para que el hero nunca crezca más allá de 100vh */
.hero-media { justify-self: end; width: min(100%, calc(100vh - 120px)); animation: fd 1.6s ease 0.45s both; }
.hero-media video {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 55%, transparent 82%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 55%, transparent 82%);
}
/* Partículas de puntitos por todo el hero, también alrededor del titular */
.hero .fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Scroll-scrub del vídeo (solo escritorio; la clase la pone JS): el hero se
   fija y el scroll avanza el vídeo del plano hasta completarlo. En móvil no
   se activa: el vídeo se reproduce solo, sin secuestrar el scroll. */
.hero-scrub.is-scrub { height: 460vh; }   /* recorrido largo = scrub lento y suave */
.hero-scrub.is-scrub .hero { position: sticky; top: 0; height: 100vh; min-height: 0; }
/* El titular va en 2 líneas SIEMPRE: nowrap y permiso para asomarse sobre el
   margen difuminado del vídeo (por eso hero-copy sube a z3 y la sombra) */
.hero-copy { position: relative; z-index: 3; min-width: 0; }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 400;
  font-size: clamp(52px, 5.8vw, 112px); line-height: 1.03; letter-spacing: -0.032em;
  white-space: nowrap; animation: fd 1.3s var(--ease) 0.15s both;
  text-shadow: 0 2px 26px rgba(15,15,15,0.9), 0 0 10px rgba(15,15,15,0.65);
}
.hero h1 .dim { color: var(--meta-dark); }
.hero-sub { margin: 48px 0 0; max-width: 420px; font-size: 16px; line-height: 1.7; color: var(--grey-nav); animation: fd 1s ease 0.95s both; }
.hero-sub strong { color: var(--white); font-weight: 400; }

/* ── CTA liquid glass del hero ── */
.hero-cta {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  margin-top: 44px; padding: 18px 34px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bg);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  overflow: hidden; animation: fd 1s ease 1.1s both;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.hero-cta::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.16) 0%, transparent 42%, transparent 66%, rgba(255,255,255,0.08) 100%);
  mix-blend-mode: screen;
}
.hero-cta .arr { display: inline-block; transition: transform 0.5s var(--ease); }
.hero-cta:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.32); transform: translateY(-2px); }
.hero-cta:hover .arr { transform: translateX(6px); }

/* ── Cifras ── */
.stats { background: var(--bg); padding: 110px var(--pad-x); border-bottom: 1px solid var(--line-light); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 0 44px; border-left: 1px solid var(--line-light); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(48px, 5vw, 84px); line-height: 1; letter-spacing: -0.03em; }
.stat-num .u { font-size: 0.5em; color: var(--meta-light); }
.stat-lbl { margin-top: 18px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--meta-light); }

/* ── Bloque de sección con número lateral (intro / cta) ── */
.sec-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.sec-head { display: flex; flex-direction: column; gap: 14px; }
.sec-head .n { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 64px; line-height: 1; color: var(--num-big-light); }
.sec-head .l { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--meta-light); }

.intro { position: relative; background: var(--bg); padding: 180px var(--pad-x) 170px; overflow: hidden; }
.intro .fx { position: absolute; top: 0; right: 0; width: 40%; height: 52%; pointer-events: none; }
.intro-body { max-width: 920px; }
.intro-lead { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.35; letter-spacing: -0.015em; }
.intro-lead .dim { color: var(--meta-light); }
.intro-p { margin: 44px 0 0; max-width: 640px; font-size: 16px; line-height: 1.8; color: var(--grey-body); }
.link-underline { display: inline-flex; align-items: center; gap: 14px; margin-top: 52px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.link-underline .t { border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.link-underline .arrow { font-family: 'Space Grotesk', sans-serif; font-size: 16px; transition: transform 0.4s var(--ease); }
.link-underline:hover .arrow { transform: translateX(6px); }

/* ── Tres objetivos ── */
.objetivos { margin-top: 110px; }
.objetivos .cap { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--meta-light); margin-bottom: 8px; }
.obj-row { display: grid; grid-template-columns: 48px minmax(180px, 300px) 1fr; gap: 24px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line-light); }
.obj-row:last-child { border-bottom: 1px solid var(--line-light); }
.obj-row .on { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 20px; color: var(--num-light); }
.obj-row .ot { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 22px; letter-spacing: -0.01em; }
.obj-row .od { font-size: 15px; line-height: 1.7; color: var(--meta-light); }

/* ── Proyectos destacados (oscuro) ── */
.featured { background: var(--ink); color: var(--bg); padding: 150px var(--pad-x) 170px; }
.featured .head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); margin-bottom: 96px; }
.featured .head .t { display: flex; align-items: baseline; gap: 28px; }
.featured .head .n { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 64px; line-height: 1; color: var(--num-dark); }
.featured .head h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(32px, 3.4vw, 54px); letter-spacing: 0.06em; text-transform: uppercase; }
.featured .head .all { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta-dark); border-bottom: 1px solid var(--line-dark); padding-bottom: 6px; transition: color 0.3s, border-color 0.3s; white-space: nowrap; }
.featured .head .all:hover { color: var(--white); border-color: var(--white); }
.feat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; row-gap: 120px; }
.feat img { width: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.feat .cap { display: flex; align-items: baseline; gap: 22px; margin-top: 28px; }
.feat .cap .n { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 15px; color: var(--num-dark); }
.feat h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 26px; letter-spacing: -0.01em; }
.feat .meta { margin-top: 10px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--meta-dark); }
.feat a:hover img { transform: scale(1.04); }
.feat-1 { grid-column: 1 / span 7; } .feat-1 img { height: 560px; }
.feat-2 { grid-column: 9 / span 4; padding-top: 170px; } .feat-2 img { height: 480px; }
.feat-3 { grid-column: 3 / span 6; } .feat-3 img { height: 500px; }

/* ── CTA home (claro) ── */
.home-cta { background: var(--bg); padding: 210px var(--pad-x); border-bottom: 1px solid var(--line-light); }
.home-cta .big { display: inline-block; font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(52px, 6.4vw, 110px); line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); }
.home-cta .big .arrow { font-weight: 300; display: inline-block; transition: transform 0.5s var(--ease); }
.home-cta .big:hover .arrow { transform: translateX(16px); }
.home-cta .cta-p { margin: 44px 0 0; max-width: 380px; font-size: 15px; line-height: 1.7; color: var(--meta-light); }

/* ── Responsive home ── */
@media (max-width: 1024px) {
  .stat { padding: 0 28px; }
  .feat-1 img, .feat-3 img { height: 460px; }
  .feat-2 { padding-top: 90px; }
}
@media (max-width: 820px) {
  .hero-inner { padding: 110px var(--pad-x) 80px; grid-template-columns: 1fr; gap: 36px; }
  .hero-media { justify-self: center; width: min(100%, 52vh); }
  .hero h1 { font-size: clamp(40px, 10vw, 58px); white-space: normal; }
  .hero-cta { margin-top: 28px; }
  .stats { padding: 72px var(--pad-x); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .stat, .stat:first-child { padding: 0 24px; border-left: 1px solid var(--line-light); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .intro, .home-cta { padding: 100px var(--pad-x); }
  .sec-grid { grid-template-columns: 1fr; gap: 40px; }
  .objetivos { margin-top: 72px; }
  .obj-row { grid-template-columns: 40px 1fr; row-gap: 8px; }
  .obj-row .od { grid-column: 2; }
  .featured { padding: 90px var(--pad-x); }
  .featured .head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 56px; }
  .feat-grid { gap: 0; row-gap: 72px; }
  .feat-1, .feat-2, .feat-3 { grid-column: 1 / -1; padding-top: 0; }
  .feat-1 img, .feat-2 img, .feat-3 img { height: 340px; }
}

/* ═══════════════════════════════════════════════════════════
   PÁGINAS INTERIORES (Estudio / Método / Servicios / Contacto)
   ═══════════════════════════════════════════════════════════ */
.sec { position: relative; background: var(--bg); padding: clamp(104px, 13vh, 132px) var(--pad-x); overflow: hidden; }
.sec.dark { background: var(--ink); color: var(--bg); }
.sec .fx.tl { position: absolute; right: 0; top: 0; width: 46%; height: 70%; pointer-events: none; }
.sec .fx.bl { position: absolute; left: 0; bottom: 0; width: 40%; height: 60%; pointer-events: none; }

.lead-xl { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.4; letter-spacing: -0.015em; }
.lead-xl .dim { color: var(--meta-light); }
.sec.dark .lead-xl .dim { color: var(--meta-dark); }
.p-body { margin: 48px 0 0; max-width: 640px; font-size: 16px; line-height: 1.8; color: var(--grey-body); }

.cap-side { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--grey-dim); padding-top: 14px; }
.statement { margin: 0; max-width: 900px; font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.3; letter-spacing: -0.02em; color: var(--meta-dark); }
.statement strong { color: var(--white); font-weight: 300; }

/* Objetivos grandes (Estudio) */
.obj-lg { display: grid; grid-template-columns: minmax(120px, 200px) minmax(200px, 340px) 1fr; gap: 32px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line-light); }
.obj-lg:last-child { border-bottom: 1px solid var(--line-light); }
.obj-lg .n { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(52px, 4.8vw, 84px); line-height: 0.9; color: var(--num-big-light); }
.obj-lg h3 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(21px, 1.8vw, 26px); letter-spacing: -0.01em; padding-top: 10px; }
.obj-lg p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--grey-body); max-width: 460px; padding-top: 14px; }

/* Imagen ambiental full-width */
.ambient { background: var(--bg); padding: 0 var(--pad-x) 170px; }
.ambient .frame { overflow: hidden; }
.ambient img { width: 100%; height: 66vh; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(0.85); }

/* CTA de cierre interior */
.end-cta { background: var(--bg); padding: 0 var(--pad-x) 130px; }
.end-cta .rule { border-top: 1px solid var(--line-light); padding-top: 90px; }
.end-cta a { display: inline-block; font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(44px, 5vw, 84px); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
.end-cta a .arrow { display: inline-block; font-weight: 300; transition: transform 0.5s var(--ease); }
.end-cta a:hover .arrow { transform: translateX(16px); }

/* Título de sección (número + título en mayúsculas) */
.sec-title { display: flex; align-items: baseline; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line-light); margin-bottom: clamp(44px, 6vw, 64px); }
.sec.dark .sec-title { border-color: var(--line-dark); }
.sec-title .n { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 64px; line-height: 1; color: var(--num-big-light); }
.sec.dark .sec-title .n { color: var(--num-dark); }
/* Título de sección: MISMA voz que .sec-label y .feature-body h2 (armonía) */
.sec-title h2 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.02em; line-height: 1.05; }

/* Lista con marcador (desafíos / cómo) */
.list-row { display: grid; grid-template-columns: 48px 1fr; gap: 24px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line-light); }
.list-row:last-child { border-bottom: 1px solid var(--line-light); }
.list-row .m { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 18px; color: var(--num-light); }
.list-row .x { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 22px; }
.list-row.sm .x { font-family: Inter, sans-serif; font-size: 16px; line-height: 1.7; }

/* Bloque 60/40 */
.split6040 { display: grid; grid-template-columns: 6fr 4fr; gap: 0; }
.split6040 .col-a { padding: 0 72px 0 0; }
.split6040 .col-b { padding: 0 0 0 72px; border-left: 1px solid var(--line-dark); }
.big-pct { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(120px, 14vw, 240px); line-height: 0.9; letter-spacing: -0.04em; }
.big-pct.dim { color: var(--grey-dim); }
.big-pct .u { font-size: 0.4em; color: var(--grey-dim); }
.big-pct.dim .u { color: #4A4A4A; }
.pct-lbl { margin-top: 34px; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--white); }
.pct-lbl.dim { color: var(--meta-dark); }
.pct-p { margin: 22px 0 0; max-width: 480px; font-size: 15px; line-height: 1.8; color: var(--meta-dark); }

/* Sub-bloque de sección (Lean: qué es / cómo / resultados) */
.subsec { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; padding-bottom: 90px; }
.subsec:last-child { padding-bottom: 0; }
.subsec .side { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--meta-light); padding-top: 12px; }
.subsec .side.pt { padding-top: 26px; }
.subsec .body { max-width: 880px; }

@media (max-width: 820px) {
  .sec { padding: 76px var(--pad-x); }
  .ambient, .end-cta { padding: 0 var(--pad-x) 100px; }
  .end-cta .rule { padding-top: 56px; }
  .ambient img { height: 42vh; }
  .sec-title { margin-bottom: 56px; }
  .obj-lg { grid-template-columns: 1fr; gap: 8px; padding: 40px 0; }
  .obj-lg p { padding-top: 8px; }
  .split6040 { grid-template-columns: 1fr; }
  .split6040 .col-a { padding: 0 0 64px; }
  .split6040 .col-b { padding: 64px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .subsec { grid-template-columns: 1fr; gap: 20px; padding-bottom: 64px; }
}

/* Overrides de lead / listas sobre fondo oscuro */
.sec.dark .lead-xl { color: var(--bg); }
.lead-xl.muted { color: var(--meta-dark); }
.lead-xl strong { color: var(--white); font-weight: 300; }
.sec:not(.dark) .lead-xl strong { color: inherit; }
.sec.dark .list-row { border-color: var(--line-dark); }
.sec.dark .list-row .m { color: var(--grey-dim); }
.sec.dark .list-row.sm .x { color: var(--grey-nav); }

/* ── Cabecera de Contacto (título en minúsculas) ── */
.page-head.contact { min-height: 58vh; }
.page-head.contact h1 { text-transform: none; font-size: clamp(52px, 6.8vw, 116px); line-height: 1.04; letter-spacing: -0.03em; }

/* ═══════════════════════════════════════════════════════════
   CONTACTO — formulario + datos
   ═══════════════════════════════════════════════════════════ */
.contact-sec { background: var(--bg); padding: 150px var(--pad-x) 170px; }
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: 100px; align-items: start; }
.form-ss { display: flex; flex-direction: column; gap: 56px; }
/* Campo trampa antispam: fuera de pantalla y fuera del flujo (sin hueco en el gap) */
.form-ss { position: relative; }
.form-ss .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-ss .form-error { margin: 0; font-size: 15px; line-height: 1.5; color: #e5484d; }
.field label { display: block; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--meta-light); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; box-sizing: border-box; background: transparent; border: none; border-bottom: 1px solid var(--num-big-light); padding: 16px 0; font-size: 18px; color: var(--ink); outline: none; border-radius: 0; transition: border-color 0.3s; font-family: Inter, sans-serif; }
.field input::placeholder, .field textarea::placeholder { color: var(--num-big-light); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; }
.btn-submit { display: inline-flex; align-items: center; gap: 16px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); padding: 22px 52px; font-family: Inter, sans-serif; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; transition: background 0.35s, color 0.35s; }
.btn-submit:hover { background: var(--bg); color: var(--ink); }
.btn-submit .arrow { font-family: 'Space Grotesk', sans-serif; font-size: 15px; }
.contact-data .cap { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--meta-light); padding-bottom: 22px; border-bottom: 1px solid var(--line-light); }
.contact-data .row { padding: 24px 0; border-bottom: 1px solid var(--line-light); }
.contact-data .row .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta-light); margin-bottom: 8px; }
.contact-data .row .v { font-family: 'Space Grotesk', sans-serif; font-size: 19px; letter-spacing: -0.01em; line-height: 1.5; display: inline-block; font-style: normal; }
.contact-data a.v { border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact-data a.v:hover { border-bottom-color: var(--ink); }
.contact-data .note { margin: 36px 0 0; font-size: 13px; line-height: 1.8; color: var(--meta-light); }
.sent { padding: 80px 0; }
.sent h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 40px; letter-spacing: -0.02em; margin: 0; }
.sent p { margin: 24px 0 0; font-size: 16px; line-height: 1.8; color: var(--grey-body); max-width: 480px; }

@media (max-width: 820px) {
  .contact-sec { padding: 100px var(--pad-x); }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .form-ss { gap: 40px; }
}

/* ═══════════════════════════════════════════════════════════
   MEJORAS Y EFECTOS (v2) — inyectados/potenciados desde main.js
   ═══════════════════════════════════════════════════════════ */

/* ── Focus visible (accesibilidad de teclado) ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px;
}
.sec.dark a:focus-visible, #ss-nav a:focus-visible, #ss-nav button:focus-visible,
footer a:focus-visible, .page-head a:focus-visible { outline-color: var(--bg); }

/* ── Barra de progreso de scroll ── */
#ss-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
  background: #FAFAF9; z-index: 9997; mix-blend-mode: difference;
  transition: transform 0.1s linear;
}

/* ── Grano de película ── */
#ss-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 39; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
@media (prefers-reduced-motion: reduce) { #ss-grain { display: none; } }

/* ── Cursor propio (solo puntero fino) ── */
@property --cs { syntax: '<number>'; inherits: false; initial-value: 1; }
@media (hover: hover) and (pointer: fine) {
  body.cursor-on, body.cursor-on a, body.cursor-on button,
  body.cursor-on input, body.cursor-on textarea, body.cursor-on [data-mag] { cursor: none; }
  /* Posición y escala por transform (capa propia, sin layout por fotograma).
     --cs anima con @property; si el navegador no lo soporta, cambia en seco. */
  #ss-cursor {
    position: fixed; top: 0; left: 0; width: 7px; height: 7px; border-radius: 50%;
    background: #FAFAF9; pointer-events: none; z-index: 9999;
    transform: translate3d(var(--x, -50px), var(--y, -50px), 0) translate(-50%, -50%) scale(var(--cs, 1));
    mix-blend-mode: difference; will-change: transform;
    transition: --cs 0.3s var(--ease), opacity 0.3s;
  }
  #ss-cursor-ring {
    position: fixed; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(250, 250, 249, 0.55); pointer-events: none; z-index: 9998;
    transform: translate3d(var(--x, -50px), var(--y, -50px), 0) translate(-50%, -50%) scale(var(--cs, 1));
    mix-blend-mode: difference; will-change: transform;
    transition: --cs 0.35s var(--ease), border-color 0.35s, opacity 0.35s;
  }
  body.cursor-hover #ss-cursor { --cs: 0; }
  body.cursor-hover #ss-cursor-ring { --cs: 1.74; border-color: rgba(250, 250, 249, 0.95); }
}
@media (hover: none) { #ss-cursor, #ss-cursor-ring { display: none; } }
@media (prefers-reduced-motion: reduce) { #ss-cursor, #ss-cursor-ring { display: none; } }

/* ── NAV: UNA píldora de cristal flotante (logo + menú) a la derecha ── */
#ss-nav {
  top: 18px; left: 0; right: 0; transform: none; width: auto; border-radius: 0;
  padding: 0 clamp(16px, 3vw, 30px);
  justify-content: flex-end;   /* la píldora única, pegada a la derecha */
  background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: top 0.5s var(--ease);
}
#ss-nav.is-scrolled { top: 10px; padding: 0 clamp(16px, 3vw, 30px); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
#ss-nav::before, #ss-nav::after { display: none; }

/* material cristal (UNA sola píldora: logo + menú · y la burger) */
.nav-pill, #ss-menu-btn {
  position: relative; z-index: 1; border-radius: 999px;
  background: rgba(15, 15, 15, 0.42);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  box-shadow:
    inset 1.5px 1.5px 0.5px -1px rgba(255, 255, 255, 0.5),
    inset -1px -1px 0.5px -1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 12px 40px rgba(0, 0, 0, 0.35);
  transition: padding 0.5s var(--ease), background 0.4s ease;
}
.nav-pill::after, #ss-menu-btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 22%, transparent 42%, transparent 68%, rgba(255,255,255,0.08) 100%);
  mix-blend-mode: screen;
}
.nav-pill::before, #ss-menu-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(150px circle at var(--nx, 50%) var(--ny, 50%), rgba(255,255,255,0.18), transparent 60%);
  opacity: 0; transition: opacity 0.4s; mix-blend-mode: screen;
}
.nav-pill:hover::before, #ss-menu-btn:hover::before { opacity: 1; }
#ss-nav.is-scrolled .nav-pill { background: rgba(15, 15, 15, 0.5); }

/* la píldora única (logo | menú), a la derecha */
.nav-pill { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 24px); padding: 11px 24px; }
#ss-nav.is-scrolled .nav-pill { padding: 9px 22px; }

/* logo dentro de la píldora, con separador vertical a su derecha */
.nav-brand { display: flex; align-items: center; padding-right: clamp(14px, 1.6vw, 20px); border-right: 1px solid rgba(255, 255, 255, 0.16); }
.nav-brand span { display: none; }              /* fuera el texto "Shield Solutions" */
.nav-brand img { height: 28px; width: auto; position: relative; z-index: 1; transition: transform 0.6s var(--ease); }
.nav-brand:hover img { transform: rotate(-8deg) scale(1.08); }

/* menú dentro de la píldora */
.nav-links { gap: 30px; }

/* Móvil: la píldora queda solo con el logo (izq) y el burger a la derecha.
   Va DESPUÉS del bloque de escritorio para ganar el orden de cascada. */
@media (max-width: 820px) {
  #ss-nav { justify-content: space-between; }
  .nav-pill { padding: 9px 16px; }
  .nav-brand { border-right: none; padding-right: 0; }
}
.nav-link { position: relative; z-index: 1; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--white); transition: width 0.4s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { border-bottom: 0; padding-bottom: 0; }
.nav-lang { position: relative; z-index: 1; }

/* ── Reveal por líneas para titulares grandes (mask) ── */
.mask-reveal { display: block; overflow: hidden; }
.mask-reveal > span { display: block; transform: translateY(110%); transition: transform 1.05s var(--ease); }
.mask-reveal.vis > span { transform: translateY(0); }

/* ── Kicker: línea que crece ── */
.kicker .dash { transform-origin: left center; }
.page-head .kicker .dash, .hero .kicker .dash { animation: lineGrow 0.9s var(--ease) 0.5s both; }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Overlay de hover en tarjetas de proyecto (badge flecha) ── */
.feat [data-clip], .project .p-img, .p-img { position: relative; }
.feat [data-clip]::after, .project .p-img::after, .p-img::after {
  content: '→'; position: absolute; right: 20px; bottom: 20px;
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(250, 250, 249, 0.94); color: #0F0F0F;
  font-family: 'Space Grotesk', sans-serif; font-size: 20px;
  transform: scale(0) rotate(-25deg); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s; pointer-events: none; z-index: 3;
}
.feat a:hover [data-clip]::after, .project:hover .p-img::after, .p-img:hover::after {
  transform: scale(1) rotate(0); opacity: 1;
}
.feat [data-clip]::before, .project .p-img::before, .p-img::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(15,15,15,0.28));
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.feat a:hover [data-clip]::before, .project:hover .p-img::before, .p-img:hover::before { opacity: 1; }

/* ── Marquee (inyectado en el footer) ── */
.ss-marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 24px 0; margin-bottom: 70px; position: relative; z-index: 2; }
.ss-marquee .track { display: inline-block; will-change: transform; animation: marquee 34s linear infinite; }
.ss-marquee:hover .track { animation-play-state: paused; }
.ss-marquee span { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(26px, 3.6vw, 52px); letter-spacing: -0.01em; color: var(--num-dark); text-transform: uppercase; padding: 0 30px; }
.ss-marquee span em { color: var(--white); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ss-marquee .track { animation: none; } }

/* ── Magnetic ── */
[data-mag] { will-change: transform; }

/* Imágenes ambientales: revelan a color al hacer hover (sutil, sin romper el B/N) */
.ambient .frame img { transition: transform 1.4s var(--ease), filter 1.2s var(--ease); }
.ambient .frame:hover img { transform: scale(1.03); filter: grayscale(1) contrast(1.15) brightness(0.95); }

/* ── Showcase full-bleed (foto de proyecto a COLOR + ficha de cristal) ── */
.showcase { position: relative; height: 92vh; min-height: 540px; overflow: hidden; background: var(--ink); }
.showcase img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.showcase:hover img { transform: scale(1.04); }
.showcase .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,15,0.45), transparent 45%), linear-gradient(0deg, rgba(15,15,15,0.4), transparent 40%), linear-gradient(180deg, rgba(15,15,15,0.55), transparent 30%); pointer-events: none; }
.glass-ficha {
  position: absolute; left: clamp(20px, 5vw, 64px); bottom: clamp(20px, 5vw, 64px);
  padding: 30px 34px; border-radius: 24px; max-width: 400px; color: var(--bg); z-index: 2;
  background: rgba(15, 15, 15, 0.30);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 1.5px 1.5px 0.5px -1px rgba(255,255,255,0.5), inset 0 0 0 1px rgba(255,255,255,0.09), 0 22px 55px rgba(0,0,0,0.45);
}
.glass-ficha::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,0.14) 0%, transparent 40%, transparent 68%, rgba(255,255,255,0.07) 100%); mix-blend-mode: screen; }
.glass-ficha .idx { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--meta-dark); }
.glass-ficha h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); margin: 10px 0 6px; }
.glass-ficha .m { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-nav); }
.glass-ficha a { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; position: relative; z-index: 1; }
.glass-ficha a .u { border-bottom: 1px solid var(--bg); padding-bottom: 4px; }
.showcase-label { position: absolute; top: clamp(90px, 14vh, 130px); left: clamp(20px, 5vw, 64px); z-index: 2; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey-nav); display: flex; align-items: center; gap: 16px; }
.showcase-label .dash { width: 40px; height: 1px; background: var(--grey-nav); }

/* ── Indicador de scroll en el hero ── */
.scroll-cue { position: absolute; left: clamp(24px, 6vw, 64px); bottom: 30px; z-index: 3; display: flex; align-items: center; gap: 14px; color: var(--grey-nav); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; }
.scroll-cue .rail { position: relative; width: 1px; height: 46px; background: rgba(201,201,201,0.25); overflow: hidden; }
.scroll-cue .rail::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--bg); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-16px); } 60%, 100% { transform: translateY(46px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .rail::after { animation: none; } }

/* Método teaser (home) */
.mteaser { position: relative; }
.mteaser .lead-xl { max-width: 720px; margin-bottom: 70px; }
.sec.dark .link-underline { color: var(--bg); }
.sec.dark .link-underline .t { border-color: var(--bg); }

/* ═══════════════════════════════════════════════════════════
   HOME v3 — minimal, sin numeración + carrusel coverflow
   ═══════════════════════════════════════════════════════════ */

/* Eyebrow minimal (sustituye a los números grandes de sección) */
.eyebrow { display: inline-flex; align-items: center; gap: 16px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--meta-light); margin-bottom: 40px; }
.eyebrow::before { content: ''; width: 38px; height: 1px; background: currentColor; opacity: 0.55; }
.sec.dark .eyebrow { color: var(--meta-dark); }

/* Encabezado de sección (sustituye a los antiguos eyebrow con rayita cuando
   la etiqueta era el único título de la sección): más grande y sin línea. */
.sec-label { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 40px; }
.sec.dark .sec-label { color: var(--bg); }

.block-min { position: relative; z-index: 2; max-width: 1080px; }

/* ── Carrusel coverflow de proyectos (FONDO BLANCO, fotos a color) ── */
.projects-cf { position: relative; background: var(--bg); color: var(--ink); padding: clamp(80px, 12vh, 140px) 0; overflow: hidden; }
.projects-cf .cf-head { padding: 0 var(--pad-x); position: relative; z-index: 2; }
.projects-cf .eyebrow { margin-bottom: 0; }
.projects-cf .cf-h { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(40px, 7vw, 100px); letter-spacing: -0.03em; margin-top: 16px; line-height: 1; }

.cf-stage { position: relative; z-index: 2; height: clamp(400px, 56vh, 600px); perspective: 1900px; margin: 34px 0 6px; }
.cf-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.cf-slide { position: absolute; left: 50%; top: 50%; width: clamp(230px, 25vw, 340px); transform: translate(-50%, -50%); transform-style: preserve-3d; transition: transform 0.8s var(--ease), opacity 0.7s var(--ease); cursor: pointer; will-change: transform; }
.cf-card { width: 100%; aspect-ratio: 4 / 5; height: auto; overflow: hidden; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,0.28); background: #000; }
.cf-card img { width: 100%; height: 100%; object-fit: cover; }
.cf-slide.is-active { cursor: default; }
.cf-slide.is-active .cf-card { box-shadow: 0 40px 80px rgba(0,0,0,0.36); }

.cf-caption { position: relative; z-index: 2; text-align: center; padding: 28px var(--pad-x) 0; min-height: 118px; }
.cf-title { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.01em; transition: opacity 0.4s var(--ease), filter 0.4s var(--ease); }
.cf-meta { margin-top: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta-light); transition: opacity 0.4s; }
.cf-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.cf-link .u { border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.cf-caption.swap .cf-title, .cf-caption.swap .cf-meta { opacity: 0; filter: blur(5px); }

.cf-controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 16px; width: fit-content; margin: 34px auto 0; padding: 8px 14px; border-radius: 999px;
  background: rgba(15,15,15,0.05); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(15,15,15,0.1), 0 12px 30px rgba(0,0,0,0.12); }
.cf-controls button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 50%; transition: background 0.3s; }
.cf-controls button:hover { background: rgba(15,15,15,0.07); }
.cf-controls button svg { width: 18px; height: 18px; }
.cf-controls button:disabled { opacity: 0.28; cursor: default; }
.cf-dots { display: flex; align-items: center; gap: 8px; }
.cf-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(15,15,15,0.22); cursor: pointer; transition: width 0.3s var(--ease), background 0.3s; }
.cf-dot.on { width: 26px; background: var(--ink); }

@media (max-width: 820px) {
  .cf-slide { width: clamp(180px, 62vw, 240px); }
  .cf-stage { height: 58vh; }
}
@media (prefers-reduced-motion: reduce) { .cf-track, .cf-slide { transition: none; } }

/* ── Selector aesthetic (tabs con reveal por líneas) — bajo el hero ── */
.segsec { position: relative; background: var(--bg); padding: clamp(90px, 14vh, 160px) var(--pad-x); text-align: center; overflow: hidden; }
.seg-tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; position: relative; z-index: 2; }
.seg-tab { border: 0; padding: 11px 22px; border-radius: 999px; font-family: Inter, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); cursor: pointer; background: rgba(15,15,15,0.07); transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.seg-tab:hover { background: rgba(15,15,15,0.14); }
.seg-tab.active { background: var(--ink); color: var(--bg); }
.seg-stage { position: relative; z-index: 2; display: grid; max-width: 920px; margin: 0 auto; }
.seg-panel { grid-area: 1 / 1; text-align: center; font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(23px, 3.1vw, 44px); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); pointer-events: none; }
.seg-panel .lnmask { display: block; overflow: hidden; padding-bottom: 0.04em; }
.seg-panel .ln { display: block; transform: translateY(120%); transition: none; }   /* reposo: sin animar (reset instantáneo) */
.seg-panel.active .ln, .seg-panel.out .ln { transition: transform 0.62s var(--ease); }
.seg-panel.active .lnmask:nth-child(2) .ln { transition-delay: 0.06s; }
.seg-panel.active .lnmask:nth-child(3) .ln { transition-delay: 0.12s; }
.seg-panel.active .lnmask:nth-child(4) .ln { transition-delay: 0.18s; }
.seg-panel.active .ln { transform: none; }
.seg-panel.out .ln { transform: translateY(-120%); }
.seg-panel .dim { color: var(--meta-light); }

/* Móvil: la frase se parte en 2 por línea; que los saltos sean equilibrados
   (sin palabras huérfanas) y algo más compacta. */
@media (max-width: 700px) {
  .segsec { padding: clamp(54px, 9vh, 92px) var(--pad-x); }
  .seg-tabs { gap: 10px; margin-bottom: 34px; }
  .seg-tab { padding: 10px 18px; font-size: 12px; }
  .seg-panel { font-size: 20px; line-height: 1.34; }
  .seg-panel .lnmask { padding-bottom: 0; }
  .seg-panel .ln { text-wrap: balance; }
  .seg-panel .lnmask:nth-child(3) { margin: 6px 0; }   /* respira la línea atenuada */
}

/* ── Partículas persistentes en esquina (visibles sobre claro Y oscuro) ──
   Se dibujan en blanco y con mix-blend-mode:difference se ven negras sobre
   fondo claro y claras sobre fondo oscuro. Siempre presentes. */
/* Sin mix-blend-mode (era muy caro al animar): partículas negras, visibles
   sobre las secciones claras que dominan el sitio. */
.fx-fixed { position: fixed; top: 0; right: 0; width: min(42vw, 520px); height: min(56vh, 560px); z-index: 0; pointer-events: none; opacity: 1; }

/* Las partículas son FONDO: cualquier canvas .fx queda en la capa 0 y el
   contenido de las secciones sube a la capa 1 (por encima de los puntos,
   por debajo de nada más). El escudo 3D (z1) y los inner (z2) ya están arriba. */
.fx { z-index: 0; }
header > *:not(.fx):not(.hero-bg):not(.logo3d):not(.scroll-cue),
section > *:not(.fx):not(.logo3d),
article > *:not(.fx),
footer > *:not(.fx) { position: relative; z-index: 1; }
@media (max-width: 820px) { .fx-fixed { width: 70vw; height: 40vh; opacity: 0.85; } }

/* ═══════════════════════════════════════════════════════════
   COMPONENTES DE REDISEÑO INTERIOR
   ═══════════════════════════════════════════════════════════ */

/* ── Feature: imagen + texto alternados ── */
.feature { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; padding: clamp(70px, 11vh, 140px) var(--pad-x); }
.feature.rev .feature-media { order: 2; }
.feature-media { overflow: hidden; border-radius: 4px; }
.feature-media img { width: 100%; height: clamp(380px, 62vh, 640px); object-fit: cover; transition: transform 1.5s var(--ease), filter 1.2s var(--ease); }
.feature-media.bw img { filter: grayscale(1) contrast(1.12) brightness(0.9); }
.feature:hover .feature-media.bw img { filter: grayscale(1) contrast(1.15) brightness(0.98); transform: scale(1.04); }
.feature:hover .feature-media img { transform: scale(1.04); }
.feature-body { max-width: 540px; }
.feature-body h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.02em; margin: 20px 0 22px; line-height: 1.05; }
.feature-body p { color: var(--grey-body); }
.feature-body p + p { margin-top: 20px; }
.sec.dark .feature-body p { color: var(--meta-dark); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 32px; } .feature.rev .feature-media { order: 0; } }

/* ── Maqueta 3D de cristal integrada en la página (sin cuadro, solo su sombra) ── */
.feature.rev .crystal-scene { order: 2; }
.crystal-scene {
  position: relative; min-height: clamp(520px, 78vh, 820px);
  background: transparent;   /* integrado en la web: sin panel, canvas transparente */
}
.crystal-scene .cs-cap {
  position: absolute; left: 2px; bottom: 2px; z-index: 3; pointer-events: none;
  font-family: Inter, sans-serif; font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--meta-light);
}

/* Etiqueta "qué riesgo neutraliza" en las secciones de método (hilo problema→solución) */
/* Misma voz que .label (etiqueta pequeña única en toda la página) */
.kills {
  font-family: Inter, sans-serif; font-size: 11px; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--meta-light); margin: 0;
}
.sec.dark .kills { color: var(--grey-dim); margin-top: 14px; }

/* Features con maqueta 3D: maqueta grande a la izquierda, texto a la derecha,
   solapados (el canvas es transparente, puede pisar la columna de texto) */
.feature.cristal { grid-template-columns: 1.3fr 1fr; gap: 0; padding: clamp(46px, 7vh, 90px) var(--pad-x); overflow: hidden; }
.feature.cristal .crystal-scene { min-height: clamp(540px, 80vh, 880px); margin-right: clamp(-180px, -10vw, -56px); }
.feature.cristal .feature-body { position: relative; z-index: 3; }
.feature.cristal .fx { position: absolute; left: 0; top: 6%; width: 52%; height: 88%; pointer-events: none; }
@media (max-width: 820px) {
  .feature.cristal { grid-template-columns: 1fr; }
  .feature.cristal .crystal-scene { margin-right: 0; }
}

/* 60/40: ocupa exactamente una pantalla */
.bp-sec { min-height: 100vh; display: flex; align-items: center; box-sizing: border-box; padding: clamp(90px, 12vh, 130px) var(--pad-x) clamp(48px, 7vh, 80px); }
.bp-sec .bp-inner { width: 100%; }
.bp-sec .sec-title { margin-bottom: clamp(28px, 4vh, 52px); padding-bottom: 20px; }
.bp-sec .big-pct { font-size: clamp(76px, 8vw, 140px); }
.bp-sec .pct-lbl { margin-top: 16px; }
.bp-sec .pct-p { margin-top: 12px; font-size: 15px; line-height: 1.7; }
.bp-sec .bp-fig + .bp-fig { margin-top: clamp(24px, 3.5vh, 44px); }
.bp-sec .bp-grid { margin-top: 0; }
.bp-sec .blueprint { max-height: min(64vh, 580px); width: auto; max-width: 100%; margin: 0 auto; display: block; }
.crystal-scene .cs-model {
  position: absolute; inset: 0; z-index: 2; cursor: grab; touch-action: pan-y;
}
.crystal-scene .cs-model:active { cursor: grabbing; }
.crystal-scene .cs-model canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 820px) {
  .feature.rev .crystal-scene { order: 0; }
  .crystal-scene { min-height: 380px; }
  .crystal-scene .cs-model { pointer-events: none; } /* móvil: no captura el swipe vertical */
}

/* ── Acordeón interactivo (fases / bloques) ── */
.acc { position: relative; z-index: 1; border-top: 1px solid var(--line-light); }
.sec.dark .acc { border-color: var(--line-dark); }
.acc-item { border-bottom: 1px solid var(--line-light); }
.sec.dark .acc-item { border-bottom-color: var(--line-dark); }
.acc-head { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(24px, 3.4vh, 40px) 0; cursor: pointer; background: none; border: 0; width: 100%; text-align: left; color: inherit; font-family: inherit; }
.acc-num { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(18px, 1.8vw, 24px); color: var(--num-light); }
.sec.dark .acc-num { color: var(--grey-dim); }
.acc-title { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -0.015em; transition: opacity 0.3s; }
.acc-icon { position: relative; width: 22px; height: 22px; flex: 0 0 auto; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; background: currentColor; transition: transform 0.45s var(--ease), opacity 0.3s; }
.acc-icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.acc-icon::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.acc-item.open .acc-icon::after { transform: translateX(-50%) scaleY(0); }
.acc-head:hover .acc-title { opacity: 0.6; }
.acc-body { overflow: hidden; height: 0; transition: height 0.55s var(--ease); }
.acc-body-inner { padding: 0 0 34px clamp(38px, 6vw, 78px); max-width: 720px; color: var(--grey-body); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.8; }
.sec.dark .acc-body-inner { color: var(--meta-dark); }
.acc-item.open .acc-num, .acc-item.open .acc-title { color: var(--ink); }
.sec.dark .acc-item.open .acc-title { color: var(--white); }

/* ── Galería por proyecto (Proyectos) ── */
.pgallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 1fr; gap: 14px; height: clamp(420px, 66vh, 720px); }
.pgallery .g-main { grid-row: 1 / 3; }
.pgallery figure { margin: 0; overflow: hidden; border-radius: 4px; position: relative; }
.pgallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s var(--ease); }
.pgallery figure:hover img { transform: scale(1.05); }
@media (max-width: 820px) { .pgallery { grid-template-columns: 1fr 1fr; height: auto; } .pgallery .g-main { grid-row: auto; grid-column: 1 / -1; height: 46vh; } .pgallery figure:not(.g-main) { height: 30vh; } }
.pgallery.duo { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
.pgallery.duo .g-main { grid-row: 1; }
.pgallery.duo figure { height: clamp(420px, 66vh, 720px); }
@media (max-width: 820px) { .pgallery.duo figure { height: 40vh; } }

/* ── Caso de proyecto (página Proyectos) ── */
.caso-p { position: relative; z-index: 1; padding: clamp(72px, 11vh, 130px) var(--pad-x); border-top: 1px solid var(--line-light); scroll-margin-top: 100px; }
.caso-p:first-of-type { border-top: 0; }
.caso-head { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 46px); margin-bottom: clamp(32px, 5vh, 56px); }
.caso-head .p-num { margin-bottom: 0 !important; }
.caso-head h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(32px, 4.6vw, 66px); letter-spacing: -0.02em; line-height: 0.95; }
.caso-head .p-tag { margin-top: 12px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta-light); }
.caso-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 24px; margin-top: clamp(30px, 4vh, 44px); }
.caso-facts .f .k { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--meta-light); margin-bottom: 10px; }
.caso-facts .f .v { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(15px, 1.5vw, 21px); border-top: 1px solid var(--line-light); padding-top: 12px; letter-spacing: -0.01em; }
@media (max-width: 820px) { .caso-facts { grid-template-columns: 1fr 1fr; } .caso-head { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ── Statbar (cifras) encima de Proyectos, formato editorial ── */
.statbar { position: relative; z-index: 1; background: var(--bg); padding: clamp(72px, 11vh, 120px) var(--pad-x) clamp(64px, 9vh, 104px); }
.statbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(30px, 3.5vw, 60px); }
.statbar .s { display: flex; flex-direction: column; align-items: center; text-align: center; }
.statbar .lbl { order: -1; margin: 0 0 20px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta-light); line-height: 1.5; }
.statbar .num { display: flex; align-items: baseline; justify-content: center; gap: 6px; white-space: nowrap; font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(38px, 4.8vw, 68px); letter-spacing: -0.035em; line-height: 0.85; }
.statbar .num .u { font-size: 0.34em; font-weight: 400; color: var(--meta-light); letter-spacing: 0; }
@media (max-width: 820px) {
  .statbar-grid { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .statbar .num { font-size: clamp(36px, 9vw, 60px); }
}

/* ── Indicador del carrusel: contador + barra de progreso (adiós puntitos) ── */
.cf-count { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 15px; letter-spacing: 0.08em; color: var(--ink); min-width: 2.2ch; text-align: center; font-variant-numeric: tabular-nums; }
.cf-progress { width: clamp(110px, 22vw, 240px); height: 2px; background: rgba(15, 15, 15, 0.16); border-radius: 2px; overflow: hidden; }
.cf-progress > span { display: block; height: 100%; width: 16%; background: var(--ink); border-radius: 2px; transition: width 0.7s var(--ease); }
.cf-total { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 12px; color: var(--meta-light); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }

/* ── CTA home: desplazado a la derecha, con más aire ── */
.home-cta-min { margin-left: clamp(0px, 16vw, 280px); }
.home-cta-min .eyebrow { display: flex; width: fit-content; margin-bottom: 30px; }  /* propia línea, separada del titular */
.home-cta .big { line-height: 1.12; }
.home-cta .cta-p { margin-top: 40px; }
@media (max-width: 820px) { .home-cta-min { margin-left: 0; } }

/* ═══════════════════════════════════════════════════════════
   RENDIMIENTO
   ═══════════════════════════════════════════════════════════ */
/* No renderizar/pintar secciones fuera de pantalla → scroll mucho más fluido */
.sec, .feature, .ambient, .showcase, .segsec, .statbar, .home-cta {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
/* Móvil: fuera backdrop-filter (blur en scroll = lag). Cristal → sólido translúcido */
@media (max-width: 860px) {
  .nav-pill, #ss-menu-btn {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(15, 15, 15, 0.92);
  }
  .glass-ficha, .cf-controls, .hero-cta { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass-ficha { background: rgba(15, 15, 15, 0.74); }
  .hero-cta { background: rgba(15, 15, 15, 0.55); }
  .fx-fixed { display: none; }              /* en móvil no hace falta la esquina de puntos */
}
img { content-visibility: auto; }

/* ═══════════════════════════════════════════════════════════
   CONTACTO EN OSCURO (fondo negro, partículas blancas)
   ═══════════════════════════════════════════════════════════ */
.contact-sec { background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.contact-sec .fx { position: absolute; right: 0; bottom: 0; width: 44%; height: 60%; pointer-events: none; z-index: 0; }
.contact-sec .contact-grid { position: relative; z-index: 1; }
.contact-sec .field label { color: var(--meta-dark); }
.contact-sec .field input, .contact-sec .field textarea { color: var(--bg); border-bottom-color: var(--line-dark); }
.contact-sec .field input::placeholder, .contact-sec .field textarea::placeholder { color: var(--grey-dim); }
.contact-sec .field input:focus, .contact-sec .field textarea:focus { border-bottom-color: var(--bg); }
.contact-sec .btn-submit { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.contact-sec .btn-submit:hover { background: transparent; color: var(--bg); }
.contact-sec .contact-data .cap { color: var(--meta-dark); border-bottom-color: var(--line-dark); }
.contact-sec .contact-data .row { border-bottom-color: var(--line-dark); }
.contact-sec .contact-data .row .k { color: var(--meta-dark); }
.contact-sec .contact-data .row .v { color: var(--bg); }
.contact-sec .contact-data a.v:hover { border-bottom-color: var(--bg); }
.contact-sec .contact-data .note { color: var(--meta-dark); }
.contact-sec .sent h2 { color: var(--bg); }
.contact-sec .sent p { color: var(--meta-dark); }

/* ═══════════════════════════════════════════════════════════
   EQUIPO / DIRECCIÓN (perfil)
   ═══════════════════════════════════════════════════════════ */
.member { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.member-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--ink); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); display: block; position: relative; z-index: 1; }
.member-photo .mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(64px, 10vw, 128px); color: rgba(255,255,255,0.16); letter-spacing: -0.03em; }
.member-body h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(30px, 4vw, 54px); letter-spacing: -0.02em; line-height: 1; }
.member-role { margin-top: 12px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--meta-light); }
.member-role strong { color: var(--ink); font-weight: 500; }
.member-creds { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.member-creds span { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: rgba(15,15,15,0.06); padding: 8px 13px; border-radius: 999px; }
.member-bio { margin-top: 28px; color: var(--grey-body); max-width: 58ch; }
.member-track { margin-top: 34px; border-top: 1px solid var(--line-light); }
.member-track .cap { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta-light); padding: 16px 0 6px; }
.member-track .tr { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line-light); align-items: baseline; }
.member-track .tr .co { font-family: 'Space Grotesk', sans-serif; font-size: clamp(15px, 1.5vw, 18px); }
.member-track .tr .co small { display: block; font-family: Inter, sans-serif; font-size: 12px; color: var(--meta-light); margin-top: 3px; letter-spacing: 0.02em; }
.member-track .tr .yr { font-size: 12px; color: var(--meta-light); letter-spacing: 0.06em; white-space: nowrap; }
.member-contact { margin-top: 30px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; letter-spacing: 0.04em; }
.member-contact a { border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
@media (max-width: 820px) {
  .member { grid-template-columns: 1fr; gap: 30px; }
  .member-photo { max-width: 260px; }
}

/* ═══════════════════════════════════════════════════════════
   ESTUDIO v2 — Exaggerated Minimalism (rediseño)
   ═══════════════════════════════════════════════════════════ */
/* Manifiesto oversized */
.manifesto { max-width: 1120px; }
.manifesto-lead { margin: 6px 0 0; font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(34px, 4.8vw, 72px); line-height: 1.08; letter-spacing: -0.03em; }
.manifesto-lead .dim { color: var(--meta-light); }
.manifesto-sub { margin-top: clamp(28px, 3.5vw, 44px); max-width: 52ch; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; color: var(--grey-body); }
/* Inter solo carga 400/500: strong a 500 evita la negrita sintética (700) */
.manifesto-sub strong, .feature-body p strong { color: var(--ink); font-weight: 500; }

/* Fundador — pieza central */
.founder { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(32px, 5vw, 84px); align-items: stretch; }
.founder-photo { position: relative; border-radius: 4px; overflow: hidden; background: var(--ink); min-height: 380px; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); display: block; position: relative; z-index: 1; }
.founder-photo .mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(70px, 12vw, 150px); color: rgba(255,255,255,0.16); }
.founder-body { display: flex; flex-direction: column; justify-content: center; }
.founder-name { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(34px, 4.8vw, 72px); letter-spacing: -0.03em; line-height: 1.0; }
.founder-role { margin-top: 16px; font-size: clamp(11px, 1.2vw, 14px); letter-spacing: 0.18em; text-transform: uppercase; color: var(--meta-light); }
.founder-role strong { color: var(--ink); font-weight: 500; }
.founder-bio { margin-top: 26px; max-width: 52ch; color: var(--grey-body); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; }
.founder-bio strong { color: var(--ink); font-weight: 500; }
.founder-contact { margin-top: 28px; display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; letter-spacing: 0.04em; }
.founder-contact a { border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: opacity 0.3s; }
.founder-contact a:hover { opacity: 0.55; }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; gap: 28px; } .founder-photo { aspect-ratio: 4/5; min-height: 0; } }

/* Timeline / trayectoria — roadmap vertical: raíl con nodos a la izquierda */
.timeline { margin-top: clamp(56px, 8vw, 100px); }
.timeline .cap { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--meta-light); padding-bottom: 26px; }
.tl-row {
  --pt: clamp(26px, 3vh, 40px);
  position: relative; display: grid; grid-template-columns: 110px 1.5fr 1.2fr;
  gap: clamp(18px, 3vw, 44px); align-items: baseline;
  padding: var(--pt) 0 var(--pt) clamp(40px, 4.5vw, 64px);
  transition: background 0.4s var(--ease);
}
/* raíl continuo */
.tl-row::before { content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: var(--line-light); }
.tl-row:first-of-type::before { top: calc(var(--pt) + 7px); }
.tl-row:last-of-type::before { bottom: calc(100% - var(--pt) - 7px); }
/* nodo */
.tl-row::after {
  content: ''; position: absolute; left: 0; top: calc(var(--pt) + 1px);
  width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box;
  border: 1px solid var(--ink); background: var(--bg);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.tl-row:first-of-type::after { background: var(--ink); }
.tl-row:hover::after { background: var(--ink); transform: scale(1.25); }
.tl-row .yr { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(14px, 1.4vw, 17px); color: var(--meta-light); letter-spacing: 0.02em; }
.tl-row .co { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(19px, 2.2vw, 30px); letter-spacing: -0.01em; }
.tl-row .co small { display: block; margin-top: 5px; font-family: Inter, sans-serif; font-size: 12.5px; letter-spacing: 0.02em; color: var(--meta-light); }
.tl-row .hl { font-size: clamp(13px, 1.2vw, 15px); line-height: 1.6; color: var(--grey-body); }
@media (max-width: 820px) {
  .tl-row { grid-template-columns: 1fr; gap: 8px; padding-left: 34px; }
  .tl-row .yr { order: -1; }
}

/* ═══════════════════════════════════════════════════════════
   ROADMAP DE SERVICIOS (horizontal)
   Escritorio: la sección se fija y el scroll vertical desplaza
   la línea hacia la derecha (JS añade .rm-pinned y la altura).
   Móvil: swipe lateral nativo con scroll-snap + aviso "desliza".
   ═══════════════════════════════════════════════════════════ */
.rm { position: relative; background: var(--bg); }
.rm-sticky {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; box-sizing: border-box;
  padding: 110px 0 70px;                 /* hueco para la nav fija */
  overflow: hidden;
}
.rm.rm-pinned .rm-sticky { position: sticky; top: 0; height: 100vh; min-height: 0; }

.rm-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 var(--pad-x); margin-bottom: clamp(40px, 7vh, 84px); }
.rm-count { font-weight: 300; font-size: 15px; letter-spacing: 0.14em; color: var(--meta-light); }
.rm-count .rm-cur { color: var(--ink); }

/* Sin JS (o con reduced-motion) el viewport es scroll horizontal nativo */
.rm-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rm-viewport::-webkit-scrollbar { display: none; }
.rm-viewport:focus-visible { outline: 1px solid var(--ink); outline-offset: -1px; }
.rm.rm-pinned .rm-viewport { overflow: hidden; }

.rm-track { position: relative; display: flex; width: max-content; padding: 14px var(--pad-x) 0; will-change: transform; }
/* La línea negra continua del roadmap (14px de aire arriba para el halo del punto activo) */
.rm-track::before {
  content: ''; position: absolute; z-index: 0;
  left: var(--pad-x); right: calc(var(--pad-x) + 2px);
  top: 26px; height: 2px; background: var(--ink);
}
/* Punta de flecha al final de la línea */
.rm-track::after {
  content: ''; position: absolute; right: var(--pad-x); top: 27px;
  width: 9px; height: 9px;
  border-top: 2px solid var(--ink); border-right: 2px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}

.rm-stop { position: relative; z-index: 1; width: clamp(300px, 26vw, 420px); padding-right: clamp(56px, 6vw, 110px); }
.rm-stop:last-child { padding-right: clamp(90px, 9vw, 160px); }

/* Nodo: punto negro grande sobre la línea */
.rm-node { position: relative; height: 26px; margin-bottom: clamp(30px, 5vh, 52px); }
.rm-dot {
  position: absolute; left: 0; top: 50%; transform: translate(0, -50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink);
  transition: box-shadow 0.5s var(--ease);
}
.rm-stop.is-on .rm-dot { box-shadow: 0 0 0 7px var(--bg), 0 0 0 8px var(--ink); }

.rm-num {
  display: block; font-weight: 300; line-height: 0.95; letter-spacing: -0.03em;
  font-size: clamp(56px, 6vw, 96px); color: var(--num-big-light);
  transition: color 0.6s var(--ease);
}
.rm-stop.is-on .rm-num { color: var(--ink); }
.rm-stop h3 {
  margin: 20px 0 0; font-family: 'Space Grotesk', sans-serif; font-weight: 400;
  font-size: clamp(20px, 1.9vw, 27px); letter-spacing: -0.015em; line-height: 1.25;
  opacity: 0.35; transition: opacity 0.6s var(--ease);
}
.rm-stop p {
  margin: 16px 0 0; max-width: 40ch; font-size: 15px; line-height: 1.75; color: var(--grey-body);
  opacity: 0.35; transition: opacity 0.6s var(--ease);
}
.rm-stop.is-on h3, .rm-stop.is-on p { opacity: 1; }

.rm-foot { padding: 0 var(--pad-x); margin-top: clamp(40px, 7vh, 76px); }
.rm-progress { height: 1px; background: var(--line-light); }
.rm-progress span { display: block; width: 0%; height: 100%; background: var(--ink); }

/* Aviso de swipe: solo móvil */
.rm-hint {
  display: none; align-items: center; gap: 12px; margin-top: 22px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--meta-light);
  transition: opacity 0.6s var(--ease);
}
.rm-hint .ar { display: inline-block; animation: rm-nudge 1.6s var(--ease) infinite; }
.rm-hint.is-done { opacity: 0; }
@keyframes rm-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(12px); } }

@media (max-width: 860px) {
  .rm-sticky { min-height: 0; padding: 90px 0 70px; }
  .rm-head { margin-bottom: 44px; }
  .rm-viewport { scroll-snap-type: x mandatory; scroll-padding-left: var(--pad-x); }
  .rm-stop { width: min(74vw, 320px); padding-right: 48px; scroll-snap-align: start; }
  .rm-stop:last-child { padding-right: 64px; }
  .rm-num { font-size: 64px; }
  .rm-foot { margin-top: 48px; }
  .rm-hint { display: inline-flex; }
}

/* ══ Sección 60/40 con plano técnico que se traza ══ */
.bp-inner { position: relative; z-index: 2; }
.bp-grid { display: grid; grid-template-columns: 4.3fr 5.7fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(24px, 3vw, 44px); }
.bp-fig + .bp-fig { margin-top: clamp(36px, 4vw, 60px); }
.bp-sec .big-pct { font-size: clamp(84px, 9vw, 150px); }
.bp-stage { position: relative; }
.bp-cap { position: absolute; top: -4px; right: 2px; z-index: 2; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--meta-dark); }
.blueprint { width: 100%; height: auto; display: block; overflow: visible; }
.blueprint path, .blueprint circle { fill: none; }
.blueprint [data-draw] { stroke: rgba(255,255,255,0.74); stroke-width: 1.4px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.blueprint .bp-thin { stroke: rgba(255,255,255,0.32); stroke-width: 1px; }
.blueprint text { fill: rgba(255,255,255,0.42); font-family: Inter, sans-serif; font-size: 12px; letter-spacing: 0.14em; }

/* Trazado (JS pone dasharray/offset y arma .bp-armed; sin JS o reduced-motion queda dibujado) */
.blueprint.bp-armed [data-draw] { transition: stroke-dashoffset 1.05s var(--ease); transition-delay: var(--d, 0s); }
.blueprint.bp-armed text { opacity: 0; transition: opacity 0.7s ease 1.5s; }
.blueprint.bp-armed.is-drawn text { opacity: 1; }

@media (max-width: 860px) {
  .bp-grid { grid-template-columns: 1fr; gap: 44px; }
  .bp-sec .big-pct { font-size: clamp(76px, 20vw, 120px); }
  .bp-cap { position: static; display: block; margin-bottom: 14px; }
}

/* ══ Cómo lo hacemos — riesgos neutralizados (mínimo, check animado) ══ */
.neu { display: flex; flex-wrap: wrap; gap: clamp(22px, 3vw, 56px); margin-top: clamp(40px, 5vw, 68px); }
.neu-item { display: flex; align-items: center; gap: 14px; font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(19px, 2vw, 30px); letter-spacing: -0.015em; color: var(--ink); }
.neu-c { width: clamp(22px, 2vw, 30px); height: auto; flex: none; color: var(--ink); }
.neu-c path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* el check se dibuja al entrar (JS arma .armed y añade .is-drawn) */
.neu.armed .neu-c path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.neu.armed.is-drawn .neu-c path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.5s var(--ease); }
.neu.armed.is-drawn .neu-item:nth-child(2) .neu-c path { transition-delay: 0.12s; }
.neu.armed.is-drawn .neu-item:nth-child(3) .neu-c path { transition-delay: 0.24s; }
.neu.armed.is-drawn .neu-item:nth-child(4) .neu-c path { transition-delay: 0.36s; }


/* ══ Enlaces legales en el footer ══ */
.foot-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 26px var(--pad-x); border-top: 1px solid var(--line-dark); }
.foot-legal a { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-dim); transition: color 0.3s; }
.foot-legal a:hover { color: var(--white); }

/* ══ Páginas legales (aviso legal, privacidad, cookies) ══ */
.legal { background: var(--bg); color: var(--ink); padding: clamp(150px, 20vh, 230px) var(--pad-x) clamp(90px, 12vh, 150px); }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-tag { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--meta-light); }
.legal h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.02em; line-height: 1.02; margin: 18px 0 0; }
.legal-updated { margin: 22px 0 0; font-size: 13px; color: var(--meta-light); }
.legal-body { margin-top: clamp(44px, 6vw, 72px); }
.legal-body h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(20px, 2.2vw, 27px); letter-spacing: -0.01em; margin: clamp(38px, 4.5vw, 56px) 0 14px; }
.legal-body h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 17px; margin: 26px 0 8px; }
.legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.8; color: var(--grey-body); }
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 18px; padding-left: 22px; }
.legal-body li { margin-bottom: 7px; }
.legal-body strong { color: var(--ink); font-weight: 500; }
.legal-body a { color: var(--ink); border-bottom: 1px solid var(--line-light); }
.legal-body a:hover { border-color: var(--ink); }
/* Placeholder resaltado: lo que tienes que rellenar */
.legal-fill { background: #FFF3C4; color: #5A4B00; padding: 1px 7px; border-radius: 4px; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 0.92em; }
.legal-note { margin-top: clamp(48px,6vw,72px); padding: 20px 22px; background: rgba(15,15,15,0.05); border-radius: 8px; font-size: 13.5px; line-height: 1.7; color: var(--meta-light); }

/* ══ Checkbox de consentimiento (formulario de contacto) ══ */
.field-check { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 8px; }
.field-check input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; flex: none; margin-top: 2px; border: 1px solid var(--meta-light); border-radius: 4px; background: transparent; cursor: pointer; position: relative; transition: background 0.2s, border-color 0.2s; }
.field-check input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
.field-check input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.field-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field-check label { font-size: 13.5px; line-height: 1.6; color: var(--grey-body); cursor: pointer; }
.field-check a { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }

/* ══ Banner de cookies (cristal, se inyecta desde main.js) ══ */
.cookiebar {
  position: fixed; left: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 26px);
  z-index: 200; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px;
  padding: 18px clamp(20px, 2.5vw, 30px); border-radius: 16px;
  background: rgba(15, 15, 15, 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 1.5px 1.5px 0.5px -1px rgba(255,255,255,0.5), inset 0 0 0 1px rgba(255,255,255,0.09), 0 20px 60px rgba(0,0,0,0.4);
  color: var(--bg);
  transform: translateY(150%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.cookiebar.is-in { transform: translateY(0); opacity: 1; }
.cookiebar p { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.82); max-width: 720px; }
.cookiebar a { color: var(--bg); border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 1px; }
.cookiebar-btns { display: flex; gap: 12px; flex: none; }
.cookiebar button { font-family: Inter, sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 24px; border-radius: 999px; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s; }
.cb-reject { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: var(--bg); }
.cb-reject:hover { border-color: var(--bg); }
.cb-accept { background: var(--bg); border: 1px solid var(--bg); color: var(--ink); }
.cb-accept:hover { opacity: 0.85; }
@media (max-width: 600px) {
  .cookiebar { flex-direction: column; align-items: stretch; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(15,15,15,0.94); }
  .cookiebar-btns { justify-content: flex-end; }
}

/* ═══════════════════════════════════════════════════════════
   AJUSTE FINO MÓVIL (≤860px) — cabeceras compactas, títulos sin
   cortes y hero reordenado: título → animación → texto → CTA.
   Va al final del archivo para ganar a las reglas anteriores.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  /* Cabeceras: fuera el mar de espacio muerto y títulos a medida */
  .page-head { min-height: 0; }
  .page-head-inner { padding: 132px var(--pad-x) 60px; }
  .page-head h1 { font-size: clamp(38px, 11vw, 60px); }
  .page-head h1.one { font-size: clamp(28px, 8.6vw, 46px); }
  .page-head.contact { min-height: 0; }
  .page-head.contact h1 { font-size: clamp(34px, 9.4vw, 52px); }
  /* Escudo 3D en móvil: arriba a la derecha, sin invadir el título */
  .logo3d { right: 0; width: 46%; transform: none; }

  /* Maquetas 3D de cristal: escena cuadrada a sangre completa (fuera el mar
     de aire), giro visible y swipe pasivo (no captura el scroll vertical) */
  .feature.cristal { padding: 48px var(--pad-x) 36px; }
  .feature.cristal .crystal-scene,
  .crystal-scene { min-height: 0; height: min(96vw, 430px); margin: 0 calc(var(--pad-x) * -1); }
  .crystal-scene .cs-model { pointer-events: auto; touch-action: pan-y; }
  .crystal-scene .cs-cap { left: var(--pad-x); }

  /* Hero home: título → animación (vídeo/póster) → subtítulo → CTA */
  .hero { min-height: 0; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 116px var(--pad-x) 58px; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; font-size: clamp(37px, 10vw, 56px); white-space: normal; }
  .hero-media { order: 2; margin: 14px auto 0; width: min(86vw, 54vh); justify-self: center; }
  .hero-sub { order: 3; margin: 10px 0 0; }
  .hero-cta { order: 4; margin-top: 26px; align-self: flex-start; }
  .hero .scroll-cue { display: none; }
}

/* ── Sección de clientes internacionales (Servicios) ── */
.sec.dark .p-body { color: var(--meta-dark); }
.sec.dark .p-body em { color: var(--bg); font-style: normal; }
.sec.dark .list-row.sm .x strong { color: var(--bg); font-weight: 400; }
.sec.dark .list-row.sm .x em { color: var(--bg); font-style: normal; }

.intl-creds { margin-top: clamp(30px, 4vh, 44px); display: flex; flex-wrap: wrap; gap: 8px; }
.intl-creds span {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bg); background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark); padding: 8px 13px; border-radius: 999px;
}

.intl-en {
  margin-top: clamp(34px, 4.5vh, 52px); max-width: 760px;
  padding: clamp(22px, 3vh, 32px) clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-dark); border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}
.intl-en .t { margin: 0 0 16px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-dim); }
.intl-en p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--meta-dark); }
.intl-en p + p { margin-top: 14px; }
.intl-en strong { color: var(--bg); font-weight: 400; }
@media (max-width: 820px) { .intl-en { padding: 22px 20px; } }

/* ═══════════════════════════════════════════════════════════
   CALCULADORA DE PRESUPUESTO (calculadora.html)
   ═══════════════════════════════════════════════════════════ */
.calc { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 78px); align-items: start; }
.calc-form { display: flex; flex-direction: column; gap: clamp(30px, 4vh, 46px); }
.calc-lbl { display: block; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--meta-light); margin-bottom: 16px; }
.calc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-opt {
  font-family: Inter, sans-serif; font-size: 13px; letter-spacing: 0.02em;
  color: var(--grey-body); background: transparent; border: 1px solid var(--line-light);
  padding: 12px 18px; border-radius: 999px; cursor: pointer;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.calc-opt:hover { border-color: var(--meta-light); color: var(--ink); }
.calc-opt.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.calc-m2 { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--num-big-light); padding-bottom: 12px; }
.calc-m2 input {
  width: 100%; box-sizing: border-box; background: transparent; border: 0; outline: none; padding: 0;
  font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.02em; color: var(--ink); line-height: 1.1;
}
.calc-m2 input::-webkit-outer-spin-button, .calc-m2 input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-m2 input[type=number] { -moz-appearance: textfield; }
.calc-u { font-family: 'Space Grotesk', sans-serif; font-size: 18px; color: var(--meta-light); flex: none; }

.calc-range { -webkit-appearance: none; appearance: none; width: 100%; margin: 22px 0 0; height: 1px; background: var(--line-light); outline: none; cursor: pointer; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); cursor: pointer; border: 0; }
.calc-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; }
.calc-range:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.calc-scale { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; color: var(--num-light); }

.calc-out { position: sticky; top: 104px; }
.calc-out-in { background: var(--ink); color: var(--bg); border-radius: 4px; padding: clamp(28px, 4vw, 44px); }
.calc-cap { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey-dim); }
.calc-total { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -0.025em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.calc-sep { color: var(--num-dark); }
.calc-permetro { margin: 14px 0 0; font-size: 14px; color: var(--meta-dark); }

.calc-ref { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.calc-ref .k { display: block; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-dim); margin-bottom: 8px; }
.calc-ref .v { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 15px; color: var(--bg); }

.calc-break { margin-top: clamp(28px, 4vh, 40px); padding-top: clamp(24px, 3vh, 32px); border-top: 1px solid var(--line-dark); }
.calc-row { display: grid; grid-template-columns: 1fr 70px 34px auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
.calc-row:first-child { border-top: 0; }
.calc-row .cn { color: var(--meta-dark); }
.calc-row .cb { display: block; height: 2px; background: rgba(255,255,255,0.09); position: relative; }
.calc-row .cb i { position: absolute; left: 0; top: 0; height: 100%; background: var(--bg); display: block; transition: width 0.5s var(--ease); }
.calc-row .cp { font-family: 'Space Grotesk', sans-serif; color: var(--grey-dim); text-align: right; }
.calc-row .cv { font-family: 'Space Grotesk', sans-serif; color: var(--bg); text-align: right; white-space: nowrap; }

.calc-cta { display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(28px, 4vh, 38px); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bg); border-bottom: 1px solid var(--bg); padding-bottom: 7px; transition: opacity 0.3s; }
.calc-cta:hover { opacity: 0.62; }
.calc-cta .arrow { font-family: 'Space Grotesk', sans-serif; font-size: 15px; }

.calc-legal { position: relative; z-index: 2; margin: clamp(40px, 6vh, 64px) 0 0; max-width: 900px; font-size: 12.5px; line-height: 1.75; color: var(--meta-light); }

@media (max-width: 980px) {
  .calc { grid-template-columns: 1fr; gap: 40px; }
  .calc-out { position: static; }
}
@media (max-width: 560px) {
  .calc-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .calc-row .cb, .calc-row .cp { display: none; }
  .calc-row .cv { font-size: 12.5px; }
  .calc-total { font-size: 26px; }
}

/* ── Linea secundaria bajo el CTA final (enlace a la calculadora) ── */
.end-cta .end-cta-sub { margin: 36px 0 0; max-width: 640px; font-family: Inter, sans-serif; font-size: 15px; line-height: 1.7; color: var(--grey-body); }
.end-cta .end-cta-sub a { display: inline; font-family: Inter, sans-serif; font-size: inherit; line-height: inherit; letter-spacing: 0; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; transition: opacity 0.3s; }
.end-cta .end-cta-sub a:hover { opacity: 0.6; }

/* ── Portada: dos enlaces en fila bajo el teaser del método ── */
.mteaser-links { display: flex; flex-wrap: wrap; gap: 16px 44px; margin-top: 60px; }
.mteaser-links .link-underline { margin-top: 0; }

/* ── Selector de idioma: ahora son enlaces reales ES/EN ── */
.nav-lang a { text-decoration: none; }
.nav-lang .on { pointer-events: none; }
#ss-menu .lang a { font-size: 13px; letter-spacing: 0.12em; text-decoration: none; }
#ss-menu .lang .on { color: var(--white); pointer-events: none; }
#ss-menu .lang .off { color: var(--grey-dim); }



/* ── Tabla de precios de referencia (calculadora) ──
   Las cifras se generan a partir del CONFIG de js/calculadora.js; si se
   tocan las tarifas alli, hay que regenerar la tabla de calculadora.html. */
.ptab { max-width: 1080px; border-top: 1px solid var(--line-light); }
.ptab-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line-light); }
.ptab-head { padding: 14px 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta-light); }
.ptab .u { font-style: normal; text-transform: none; }
.ptab-row .pt-n { font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: 20px; letter-spacing: -0.01em; }
.ptab-row .pt-n small { display: block; margin-top: 9px; font-family: Inter, sans-serif; font-size: 13.5px; line-height: 1.65; letter-spacing: 0; color: var(--meta-light); max-width: 46ch; }
.ptab-row .pt-v { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 17px; white-space: nowrap; }
@media (max-width: 860px) {
  .ptab-head { display: none; }
  .ptab-row { grid-template-columns: 1fr; row-gap: 11px; padding: 28px 0; }
  .ptab-row .pt-n small { max-width: none; }
  .ptab-row .pt-v { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15.5px; margin-top: 3px; }
  .ptab-row .pt-v::before { font-family: Inter, sans-serif; font-size: 10.5px; font-weight: 400; letter-spacing: 0.18em; color: var(--meta-light); white-space: nowrap; }
  .ptab-row .pt-v:nth-child(2)::before { content: '€/m²'; }
  .ptab-row .pt-v:nth-child(3)::before { content: '90 m²'; }
  .ptab-row .pt-v:nth-child(4)::before { content: '120 m²'; }
}

/* ── Sobre nosotros: esquema "quién responde ante quién" + puntos ── */
.emp-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: center; max-width: 1180px; }
.emp-grid .bp-stage { padding-top: 26px; }
.emp-grid .blueprint { max-width: 520px; margin: 0 auto; }
.emp-grid .list-row.sm { padding: 22px 0; }
.emp-grid .list-row.sm:first-child { border-top: 1px solid var(--line-dark); }
@media (max-width: 860px) {
  .emp-grid { grid-template-columns: 1fr; gap: 40px; }
  .emp-grid .blueprint { max-width: 400px; }
}

/* ── Repaso de layout (Sobre nosotros / Servicios): menos texto, más estructura ── */

/* Tres cifras grandes dentro de una sección oscura */
.figs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(150px, auto)); justify-content: start; gap: clamp(32px, 6vw, 96px); margin: clamp(40px, 5vw, 64px) 0 clamp(36px, 5vw, 56px); }
.figs .n { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(48px, 5.4vw, 84px); line-height: 0.9; letter-spacing: -0.035em; color: var(--bg); }
.figs .l { display: block; margin-top: 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--meta-dark); max-width: 14ch; line-height: 1.5; }


/* Disyuntiva en dos columnas (Servicios: sin proyecto / con arquitecto) */
.either { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1080px; border-top: 1px solid var(--line-light); }
.either > div { padding: clamp(28px, 3.5vw, 44px) clamp(28px, 4vw, 56px) clamp(8px, 1.5vw, 16px) 0; }
.either > div + div { border-left: 1px solid var(--line-light); padding-left: clamp(28px, 4vw, 56px); padding-right: 0; }
.either h3 { margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; line-height: 1.25; }
.either h3 span { color: var(--meta-light); }
.either p { margin: 16px 0 0; font-size: 15px; line-height: 1.75; color: var(--grey-body); max-width: 42ch; }



@media (max-width: 860px) {
  .figs { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .figs .n { font-size: clamp(40px, 11vw, 56px); }
  .figs .l { font-size: 11px; letter-spacing: 0.12em; }
  .either { grid-template-columns: 1fr; }
  .either > div { padding: 26px 0 8px; }
  .either > div + div { border-left: 0; border-top: 1px solid var(--line-light); padding-left: 0; }
}


/* ── El encargo: cuatro puntos en rejilla, sin ilustración (fondo oscuro) ── */
.enc-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 96px); max-width: 1080px; border-top: 1px solid var(--line-dark); }
.enc-item { padding: clamp(28px, 3.5vw, 44px) 0 clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--line-dark); }
.enc-item .n { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: clamp(32px, 3.2vw, 48px); line-height: 0.9; color: var(--grey-dim); }
.enc-item h3 { margin: 18px 0 0; font-family: 'Space Grotesk', sans-serif; font-weight: 400; font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -0.01em; line-height: 1.25; color: var(--bg); }
.enc-item p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--meta-dark); max-width: 40ch; }
@media (max-width: 860px) {
  .enc-grid { grid-template-columns: 1fr; }
  .enc-item p { max-width: none; }
}

/* ── Entregable de cada paso de la preconstrucción (dentro del acordeón) ── */
.acc-out { display: block; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-light); font-size: 14px; line-height: 1.6; color: var(--grey-body); }
.acc-out strong { font-weight: 500; color: var(--ink); }

/* ── Compactar: objetivos en tres columnas, listas largas a dos columnas, encargo a cuatro ── */
.obj-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); max-width: 1180px; border-top: 1px solid var(--line-light); }
.obj-3col .obj-lg { display: block; padding: clamp(28px, 3vw, 40px) 0 0; border: 0; }
.obj-3col .obj-lg .n { font-size: clamp(40px, 4vw, 64px); }
.obj-3col .obj-lg h3 { padding-top: 16px; }
.obj-3col .obj-lg p { padding-top: 10px; max-width: 34ch; }
.sec.dark .obj-3col { border-color: var(--line-dark); }
.sec.dark .obj-lg .n { color: var(--num-dark); }
.sec.dark .obj-lg h3 { color: var(--bg); }
.sec.dark .obj-lg p { color: var(--meta-dark); }
.rows-2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); max-width: 1180px; border-top: 1px solid var(--line-light); }
.rows-2col .list-row { border-top: 0; border-bottom: 1px solid var(--line-light); padding: 22px 0; }
.sec.dark .rows-2col { border-color: var(--line-dark); }
.sec.dark .rows-2col .list-row { border-bottom-color: var(--line-dark); }
.sec:not(.dark) .enc-grid { border-color: var(--line-light); }
.sec:not(.dark) .enc-item { border-color: var(--line-light); }
.sec:not(.dark) .enc-item .n { color: var(--num-big-light); }
.sec:not(.dark) .enc-item h3 { color: var(--ink); }
.sec:not(.dark) .enc-item p { color: var(--grey-body); }
@media (min-width: 1100px) {
  .enc-grid { grid-template-columns: repeat(4, 1fr); column-gap: clamp(28px, 3vw, 48px); }
  .enc-item { padding-bottom: clamp(22px, 2.4vw, 32px); }
}
@media (max-width: 860px) {
  .obj-3col { grid-template-columns: 1fr; gap: 0; }
  .obj-3col .obj-lg { padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
  .obj-3col .obj-lg:last-child { border-bottom: 0; }
  .rows-2col { grid-template-columns: 1fr; }
}

/* ── Sin 3D (móvil, equipos modestos, ahorro de datos): que no quede hueco ── */
html.no3d .logo3d { display: none; }
html.no3d .feature.cristal { grid-template-columns: 1fr; }
html.no3d .feature.cristal .crystal-scene { display: none; }

/* La regla global "section > :not(.fx)" pone position:relative a todo hijo de
   section y tiene más especificidad que .glass-ficha / .showcase-label, que se
   colocan solas dentro de la banda. Se les devuelve el absolute. */
section.showcase > .glass-ficha,
section.showcase > .showcase-label { position: absolute; }

/* ── Sello: el escudo, discreto, junto a la frase de compromiso ── */
.sello { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: clamp(26px, 4vw, 56px); align-items: center; margin-bottom: clamp(44px, 6vw, 72px); max-width: 1080px; }
.sello-mark { width: clamp(52px, 5.5vw, 84px); height: auto; opacity: 0.9; }
.sello-txt .statement { max-width: 26ch; }
@media (max-width: 860px) {
  .sello { grid-template-columns: 1fr; gap: 20px; }
  .sello-mark { width: 48px; }
}

/* ── Manifiesto: parrafo de apoyo sobre quantity surveying ── */
.manifesto-qs { margin: 22px 0 0; max-width: 62ch; font-size: 15px; line-height: 1.8; color: var(--grey-body); }
