/* =========================================================
   SOLDIMAR — design tokens
   Spacing on a 4/8px scale (Tailwind-equivalent), one accent
   (fire), cool near-black neutrals, sharp 0px corners as the
   industrial signature.
   ========================================================= */
:root {
  --fire: #FF4D00;
  --ember: #FF8C00;
  --ink: #0B0B0D;             /* text on orange: 5.9:1 (white on orange only reaches 3.3:1) */
  --error: #FF7A7A;

  --bg-0: #08080A;
  --bg-1: #0D0D10;
  --bg-2: #121215;
  --bg-3: #19191D;
  --bg-4: #212126;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);

  --text: #F4F2EF;
  --text-2: rgba(244, 242, 239, 0.74);
  --text-3: rgba(244, 242, 239, 0.56);

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
  --section-y: clamp(88px, 11vw, 152px);
  --nav-h: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--nav-h) + var(--safe-top) + 8px);
  background: var(--bg-0);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.menu-open { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg-1);
  color: var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; }

a, button, [role="button"], label {
  touch-action: manipulation;
}
a, button { -webkit-touch-callout: none; }

:focus-visible {
  outline: 2px solid var(--fire);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: calc(12px + var(--safe-top)); left: 12px;
  z-index: 10000;
  background: var(--fire); color: var(--ink);
  padding: 12px 20px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  margin-inline: auto;
}

/* ---------- Typography primitives ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 32px; height: 1px; background: currentColor; flex-shrink: 0;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 2rem + 4.6vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}
.accent { color: var(--fire); }
.accent-block { display: block; }

.lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-2);
  max-width: 58ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--fire); color: var(--ink); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 12px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  -webkit-user-select: none; user-select: none;
  transition: color 0.2s var(--ease-out);
}
.link-arrow span { transition: transform 0.25s var(--ease-out); }
.link-arrow:active { color: var(--text); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--ember); }
  .btn-ghost:hover { border-color: var(--fire); }
  .link-arrow:hover { color: var(--text); }
  .link-arrow:hover span { transform: translateX(4px); }
}

/* =========================================================
   CUSTOM CURSOR — only for mouse users, never on touch
   ========================================================= */
.cursor, .cursor-ring { display: none; }
.has-cursor .cursor, .has-cursor .cursor-ring {
  display: block;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
  transition: opacity 0.2s;
}
.has-cursor body, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor {
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: var(--fire);
  z-index: 9999;
}
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid rgba(255, 77, 0, 0.5);
  z-index: 9998;
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), margin 0.2s var(--ease-out), border-color 0.2s, opacity 0.2s;
}
.cursor-ring.is-hover {
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-color: rgba(255, 77, 0, 0.85);
}
.cursor-hidden .cursor, .cursor-hidden .cursor-ring { opacity: 0; }

#sparks {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 9997;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding-top: var(--safe-top);
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 15, 0.86);
  border-bottom-color: rgba(255, 77, 0, 0.18);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background: rgba(11, 11, 15, 0.72);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
  }
}
.menu-open .site-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.nav-inner {
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 30px; letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  display: inline-flex; align-items: center;
  min-height: 44px;
  margin-right: auto;
}
.nav-logo span { color: var(--fire); }

.nav-links { display: none; }
.nav-cta { display: none; }

.menu-toggle {
  position: relative;
  width: 48px; height: 48px;
  margin-right: -10px;
  display: grid; place-items: center;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.menu-toggle-bar {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.menu-toggle-bar:first-child { transform: translateY(-4px); }
.menu-toggle-bar:last-child { transform: translateY(4px); right: 20px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-child { transform: rotate(-45deg); right: 12px; }

@media (min-width: 600px) {
  .nav-cta { display: inline-flex; }
}
@media (min-width: 900px) {
  .nav-inner { gap: 40px; }
  .nav-links { display: flex; gap: 36px; }
  .nav-links a {
    position: relative;
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    transition: color 0.2s var(--ease-out);
  }
  .nav-links a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 10px;
    height: 1px; background: var(--fire);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }
  .nav-links a.is-active { color: var(--text); }
  .nav-links a.is-active::after { transform: scaleX(1); }
  .menu-toggle { display: none; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { transform: scaleX(1); }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: var(--bg-0);
  padding: calc(var(--nav-h) + var(--safe-top) + 24px) var(--gutter) calc(24px + var(--safe-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.mobile-menu::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 50% at 90% 10%, rgba(255, 77, 0, 0.14), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px);
  pointer-events: none;
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible;
  transition: opacity 0.3s var(--ease-out), visibility 0s;
}
.mobile-menu-links { position: relative; }
.mobile-menu-links li {
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu-links li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu-links li:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu-links a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 13vw, 64px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-menu-links a span {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  color: var(--fire);
  min-width: 24px;
}
.mobile-menu-links a:active { color: var(--fire); }
.mobile-menu-foot { position: relative; display: grid; gap: 10px; }
.mobile-menu-foot p {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
@media (min-width: 900px) { .mobile-menu { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + var(--safe-top) + 32px) 0 40px;
  overflow: hidden;
  isolation: isolate;
  background: #0E0E16;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 45%, #1c1a2e 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 20% 70%, #0f1a1a 0%, transparent 60%),
    linear-gradient(160deg, #0e0e1a 0%, #111318 40%, #0c1410 100%);
  will-change: transform;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  /* Mobile: text sits over the whole canvas, so darken top-to-bottom */
  background:
    linear-gradient(180deg, rgba(8,8,12,0.35) 0%, rgba(8,8,12,0.15) 30%, rgba(8,8,12,0.55) 62%, rgba(8,8,12,0.88) 100%);
}
.hero-line {
  display: none;
  position: absolute; top: 0; left: 64%;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,77,0,0.4), transparent);
  animation: lineFlicker 3s ease-in-out infinite;
}
@keyframes lineFlicker { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; gap: 40px;
}
.hero-content { max-width: 780px; }

.hero-label { opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.2s forwards; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(6rem, 32vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.35s forwards;
}
.hero-title .accent { display: block; }
.hero-subtitle {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(244, 242, 239, 0.82);
  max-width: 34ch;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.55s forwards;
}
.hero-subtitle strong { font-weight: 500; color: var(--text); }
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}
.hero-actions .btn-primary { flex: 1 1 100%; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}
.stat {
  display: flex; flex-direction: column-reverse; gap: 6px;
  border-left: 2px solid var(--fire);
  padding-left: 12px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.35;
  color: var(--text-3);
}

.hero-scroll {
  display: none;
  position: absolute; bottom: 36px; left: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  z-index: 2;
  align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-3);
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
}
.scroll-bar {
  width: 40px; height: 1px; background: var(--line-2);
  position: relative; overflow: hidden;
}
.scroll-bar::after {
  content: ''; position: absolute; top: 0; left: -40px;
  width: 40px; height: 100%;
  background: var(--fire);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim { 0% { left: -40px; } 100% { left: 40px; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 374px) {
  .eyebrow { letter-spacing: 0.2em; }
}
@media (min-width: 600px) {
  .hero-actions .btn-primary { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .hero { padding-bottom: 112px; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8,8,12,0.55) 0%, rgba(8,8,12,0) 16%),
      linear-gradient(100deg, rgba(8,8,14,0.72) 0%, rgba(8,8,14,0.25) 50%, rgba(0,0,0,0) 100%),
      linear-gradient(180deg, transparent 70%, rgba(8,8,12,0.6) 100%);
  }
  .hero-line { display: block; }
  .hero-scroll { display: flex; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; }
  .hero-title { font-size: clamp(8rem, 12vw, 11rem); margin-bottom: 32px; }
  .hero-subtitle { max-width: 40ch; margin-bottom: 44px; }
  .hero-stats {
    display: flex; flex-direction: column; gap: 28px;
    padding-top: 0; border-top: 0;
  }
  .stat {
    text-align: right;
    border-left: 0; border-right: 2px solid var(--fire);
    padding: 0 20px 0 0;
  }
  .stat-number { font-size: 46px; }
  .stat-label { letter-spacing: 0.16em; }
}

/* =========================================================
   MARQUEE (decorative)
   ========================================================= */
.marquee {
  background: var(--fire);
  overflow: hidden;
  padding: 18px 0;
  -webkit-user-select: none; user-select: none;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee--reverse .marquee-track { animation-direction: reverse; animation-duration: 38s; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 36px;
  padding-right: 36px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(11, 11, 13, 0.42);
}
.marquee-item::after {
  content: ''; width: 6px; height: 6px;
  background: rgba(11, 11, 13, 0.5);
  transform: rotate(45deg);
}
.marquee-item.is-strong { color: rgba(11, 11, 13, 0.86); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: var(--section-y) 0; }

.section-head {
  display: grid; gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-intro {
  font-size: 16px; line-height: 1.7;
  color: var(--text-2);
  max-width: 36ch;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
}

/* Image fallback: if a photo fails, the slot still looks designed */
.media {
  position: absolute; inset: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 14px),
    radial-gradient(120% 90% at 75% 15%, #2a2a31 0%, #15151a 70%);
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), opacity 0.4s;
}
.media img.is-broken { opacity: 0; }

/* ---------- TRABAJOS ---------- */
.trabajos { background: var(--bg-2); }
.trabajos-grid {
  display: grid; gap: 4px;
  grid-template-columns: 1fr;
}
.trabajo-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-3);
}
.trabajo-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(to top, rgba(10,10,12,0.97) 0%, rgba(10,10,12,0.9) 38%, rgba(10,10,12,0.55) 66%, rgba(10,10,12,0.08) 92%);
  transition: background 0.4s var(--ease-out);
}
.trabajo-index {
  position: absolute; top: clamp(16px, 2.5vw, 28px); right: clamp(16px, 2.5vw, 28px);
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 0.12em;
  color: var(--text);
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  background: rgba(10,10,12,0.4);
  line-height: 1;
}
.trabajo-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 10px;
}
.trabajo-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.trabajo-desc {
  margin-top: 10px;
  font-size: 14px; line-height: 1.6;
  color: var(--text-2);
  max-width: 44ch;
}
.trabajo-card:first-child .trabajo-name { font-size: clamp(34px, 4.4vw, 60px); }

@media (min-width: 600px) {
  .trabajos-grid { grid-template-columns: 1fr 1fr; }
  .trabajo-card { aspect-ratio: 4 / 5; }
  .trabajo-card:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
}
@media (min-width: 900px) {
  .trabajos-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, clamp(280px, 25vw, 380px));
  }
  .trabajo-card, .trabajo-card:first-child { aspect-ratio: auto; }
  .trabajo-card:first-child { grid-column: auto; grid-row: span 2; }
}
@media (hover: hover) and (pointer: fine) {
  .trabajo-card:hover .media img { transform: scale(1.06); }
  .trabajo-card:hover .trabajo-overlay {
    background: linear-gradient(to top, rgba(10,10,12,0.98) 0%, rgba(10,10,12,0.8) 45%, rgba(10,10,12,0.25) 100%);
  }
}

/* ---------- SERVICIOS ---------- */
.servicios { background: var(--bg-1); }
.servicios-inner { display: grid; gap: 56px; }
.servicios-left .lead { margin: 28px 0 36px; }

.servicios-grid {
  display: grid; gap: 4px;
  grid-template-columns: 1fr;
}
.servicio-item {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 24px 32px;
  background: var(--bg-3);
  overflow: hidden;
  transition: background-color 0.3s var(--ease-out);
}
.servicio-item::before {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--fire);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.servicio-num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-display);
  font-size: 56px; line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.servicio-icon {
  width: 32px; height: 32px;
  color: var(--fire);
  margin-bottom: 22px;
  flex-shrink: 0;
}
.servicio-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.servicio-code {
  font-family: var(--font-cond);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fire);
  padding: 3px 7px 2px;
  border: 1px solid rgba(255, 77, 0, 0.4);
  line-height: 1.2;
}
.servicio-name {
  font-family: var(--font-cond);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.15;
}
.servicio-desc {
  font-size: 15px; line-height: 1.6;
  color: var(--text-2);
}

@media (min-width: 600px) {
  .servicios-grid { grid-template-columns: 1fr 1fr; }
  .servicio-item { padding: 36px 32px 40px; min-height: 260px; }
}
@media (min-width: 900px) {
  .servicios-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
    gap: clamp(56px, 7vw, 112px);
    align-items: start;
  }
  .servicios-left { position: sticky; top: calc(var(--nav-h) + 56px); }
}
@media (hover: hover) and (pointer: fine) {
  .servicio-item:hover { background: var(--bg-4); }
  .servicio-item:hover::before { transform: scaleX(1); }
}

/* ---------- NDT STRIP ---------- */
.ndt-strip {
  position: relative;
  height: clamp(260px, 32vw, 380px);
  overflow: hidden;
  background: var(--bg-0);
}
.ndt-strip-media {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr;
}
.ndt-strip-media .slot { position: relative; }
.ndt-strip-media .slot:not(:first-child) { display: none; }
.ndt-strip-media img { filter: grayscale(45%) brightness(0.55) contrast(1.05); }
.ndt-strip-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 0 var(--gutter);
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(8,8,10,0.78) 0%, rgba(8,8,10,0.55) 100%),
    linear-gradient(90deg, rgba(8,8,10,0.6) 0%, rgba(8,8,10,0.2) 50%, rgba(8,8,10,0.6) 100%);
}
.ndt-strip-text { text-align: center; display: grid; justify-items: center; }
.ndt-strip-text .eyebrow { margin-bottom: 14px; }
.ndt-strip-text .eyebrow::after { content: ''; width: 32px; height: 1px; background: currentColor; }
.ndt-strip-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 18ch;
}
@media (min-width: 700px) {
  .ndt-strip-media { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .ndt-strip-media .slot:not(:first-child) { display: block; }
}

/* ---------- NOSOTROS ---------- */
.about { background: var(--bg-2); overflow: hidden; }
.about-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 34vw; line-height: 1;
  color: rgba(255, 255, 255, 0.022);
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
  white-space: nowrap;
}
.about-inner { position: relative; z-index: 1; display: grid; gap: 64px; }
.about-media { position: relative; margin: 16px 16px 20px 0; }
.about-frame {
  position: absolute; top: -16px; right: -16px; bottom: 16px; left: 16px;
  border: 1px solid var(--fire);
}
.about-image-wrap { position: relative; z-index: 1; aspect-ratio: 1 / 1; }
.about-badge {
  position: absolute; z-index: 2;
  left: 0; bottom: -20px;
  width: 128px; height: 128px;
  background: var(--fire); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 16px;
}
.about-badge strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: 52px; line-height: 0.9;
}
.about-badge span {
  margin-top: 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3;
}
.about-content .h2 { margin-bottom: 28px; }
.about-content p + p { margin-top: 18px; }
.about-values {
  margin-top: 40px;
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.about-value {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  background: var(--bg-2);
  font-size: 15px; font-weight: 500; line-height: 1.45;
}
.about-value svg { width: 18px; height: 18px; color: var(--fire); flex-shrink: 0; margin-top: 2px; }

@media (min-width: 600px) {
  .about-image-wrap { aspect-ratio: 4 / 3; }
  .about-badge { left: -20px; width: 144px; height: 144px; }
  .about-media { margin-left: 20px; }
  .about-values { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .about-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(64px, 8vw, 120px);
    align-items: center;
  }
  .about-image-wrap { aspect-ratio: 4 / 5; }
}

/* ---------- CONTACTO ---------- */
.contacto { background: var(--bg-0); overflow: hidden; }
.contacto::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 0% 100%, rgba(255, 77, 0, 0.08), transparent 70%);
  pointer-events: none;
}
.contacto-inner { position: relative; display: grid; gap: 56px; }
.contacto-left .h2 { margin-bottom: 28px; }
.contacto-left .lead { margin-bottom: 40px; }

.contact-list { display: grid; gap: 4px; }
.contact-item {
  display: flex; align-items: center; gap: 18px;
  min-height: 72px;
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.contact-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 77, 0, 0.35);
  color: var(--fire);
  flex-shrink: 0;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-text { display: grid; gap: 2px; }
.contact-text small {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fire);
}
.contact-text span { font-size: 17px; font-weight: 500; color: var(--text); }
.contact-item .chev { margin-left: auto; color: var(--text-3); transition: transform 0.25s var(--ease-out), color 0.2s; }
a.contact-item:active .contact-icon { background: var(--fire); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  a.contact-item:hover .contact-icon { background: var(--fire); color: var(--ink); }
  a.contact-item:hover .chev { transform: translateX(4px); color: var(--fire); }
}

.form-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 48px);
  position: relative;
}
.form-panel::before {
  content: '';
  position: absolute; top: -1px; left: -1px;
  width: 64px; height: 2px;
  background: var(--fire);
}
.form-title {
  font-family: var(--font-cond);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 4px;
}
.form-sub { font-size: 14px; color: var(--text-3); margin-bottom: 8px; }

.contacto-form { display: grid; gap: 8px; }
.field { position: relative; }
.field-control { position: relative; padding-top: 22px; }
.field input, .field textarea {
  width: 100%;
  display: block;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  -webkit-appearance: none; appearance: none;
  padding: 12px 0 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px; /* 16px minimum: stops iOS zooming into the field */
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; }
.field label {
  position: absolute; left: 0; top: 34px;
  font-size: 16px; line-height: 1.5;
  color: var(--text-3);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-26px) scale(0.78);
  color: var(--text-2);
}
.field input:focus + label, .field textarea:focus + label { color: var(--fire); }
.field-line {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--fire);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.field textarea ~ .field-line { bottom: 6px; }
.field-control:focus-within .field-line { transform: scaleX(1); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field-error {
  min-height: 20px;
  padding-top: 6px;
  font-size: 13px; line-height: 1.3;
  color: var(--error);
}
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--error); }
.field.has-error .field-line { background: var(--error); }
.field.has-error label { color: var(--error); }

.form-actions { display: grid; gap: 14px; margin-top: 12px; }
.form-actions .btn { width: 100%; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--text-3); }
.form-status {
  font-size: 14px; line-height: 1.5;
  min-height: 0;
}
.form-status:not(:empty) {
  padding: 14px 16px;
  border-left: 2px solid var(--fire);
  background: rgba(255, 77, 0, 0.08);
  color: var(--text);
}
.form-status.is-error { border-left-color: var(--error); background: rgba(255, 122, 122, 0.08); }

@media (min-width: 600px) {
  .form-actions { grid-template-columns: auto 1fr; align-items: center; gap: 24px; }
  .form-actions .btn { width: auto; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
@media (min-width: 900px) {
  .contacto-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 112px); align-items: start; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #060607;
  border-top: 1px solid rgba(255, 77, 0, 0.15);
  padding: 56px 0 calc(32px + var(--safe-bottom));
}
.footer-top {
  display: grid; gap: 32px;
  padding-bottom: 40px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 40px; letter-spacing: 0.12em; line-height: 1;
  text-decoration: none;
}
.footer-logo span { color: var(--fire); }
.footer-tag { margin-top: 8px; font-size: 13px; color: var(--text-3); letter-spacing: 0.04em; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.footer-links a {
  display: flex; align-items: center; min-height: 44px;
  color: var(--text-2); text-decoration: none;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.2s var(--ease-out);
}
.footer-phone {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: 0.06em;
  text-decoration: none;
}
.footer-phone svg { width: 18px; height: 18px; color: var(--fire); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-3);
}
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--fire); }
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
  .footer-links { display: flex; justify-content: center; gap: 36px; }
}
@media (max-width: 899.98px) {
  /* keep footer content clear of the fixed mobile action bar */
  .site-footer { padding-bottom: calc(108px + var(--safe-bottom)); }
}

/* ---------- MOBILE ACTION BAR ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px;
  padding: 10px var(--gutter) calc(10px + var(--safe-bottom));
  background: rgba(11, 11, 15, 0.94);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-out);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .mobile-bar { background: rgba(11, 11, 15, 0.78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { min-height: 50px; padding: 0 16px; font-size: 12px; letter-spacing: 0.14em; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* =========================================================
   SCROLL REVEAL (only when JS is running)
   ========================================================= */
.js .reveal, .js .reveal-left, .js .reveal-right {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
@media (min-width: 900px) {
  .js .reveal-left { transform: translateX(-48px); }
  .js .reveal-right { transform: translateX(48px); }
  .d1 { --d: 0.08s; } .d2 { --d: 0.16s; } .d3 { --d: 0.24s; }
  .servicio-item:nth-child(2n) { --d: 0.1s; }
}
.js .is-visible { opacity: 1; transform: none; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .marquee-track, .hero-line, .scroll-bar::after { animation: none !important; }
  .js .reveal, .js .reveal-left, .js .reveal-right { opacity: 1; transform: none; }
}

/* =========================================================
   MULTI-PAGE: shared additions
   ========================================================= */
.mobile-menu-links a[aria-current="page"] { color: var(--fire); }
.footer-links a[aria-current="page"] { color: var(--text); }
@media (min-width: 900px) {
  .nav-links a[aria-current="page"] { color: var(--text); }
  .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
}

/* Home project cards link through to the projects page */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.card-link:focus-visible { outline: none; }
.trabajo-card:has(.card-link:focus-visible) { outline: 2px solid var(--fire); outline-offset: 3px; }
.trabajo-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fire);
  transition: transform 0.25s var(--ease-out);
}
.section-foot { margin-top: clamp(28px, 4vw, 48px); display: flex; justify-content: flex-end; }
.about-cta { margin-top: 32px; }
@media (max-width: 599.98px) {
  .section-foot .btn, .about-cta .btn { width: 100%; }
}
@media (hover: hover) and (pointer: fine) {
  .trabajo-card:hover .trabajo-more { transform: translateX(4px); }
}

/* ---------- Page hero (inner pages) ---------- */
.hero--page {
  min-height: auto;
  padding: calc(var(--nav-h) + var(--safe-top) + clamp(40px, 9vw, 112px)) 0 clamp(56px, 8vw, 104px);
}
.hero-title--page { font-size: clamp(3.75rem, 16vw, 6rem); line-height: 0.9; }
.hero--page .hero-subtitle { max-width: 46ch; }
@media (min-width: 900px) {
  .hero--page { padding-bottom: clamp(72px, 8vw, 112px); }
  .hero--page .hero-content { max-width: 920px; }
  .hero-title--page { font-size: clamp(6rem, 8.5vw, 9rem); }
}

.breadcrumb { margin-bottom: 12px; opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.1s forwards; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3);
}
.breadcrumb li { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; color: var(--text-3); }
.breadcrumb a { color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb [aria-current="page"] { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .breadcrumb a:hover { color: var(--fire); } }

/* ---------- Closing CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--bg-0);
  padding: clamp(80px, 10vw, 136px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 100% 100%, rgba(255, 77, 0, 0.14), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 80px);
  pointer-events: none;
}
.cta-inner { position: relative; display: grid; gap: 36px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 599.98px) { .cta-actions .btn { flex: 1 1 100%; } }
@media (min-width: 900px) {
  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; }
}

/* Small code tag (UT, PM…) shared by services and project sheets */
.tech-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-list abbr, .code-tag {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fire);
  padding: 3px 7px 2px;
  border: 1px solid rgba(255, 77, 0, 0.4);
  line-height: 1.2;
  text-decoration: none;
}

/* =========================================================
   PROYECTOS PAGE
   ========================================================= */
.proyectos { background: var(--bg-2); }
.listing-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.listing-title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px;
  font-family: var(--font-cond);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.listing-count {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fire);
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-bar[hidden] { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--fire); border-color: var(--fire); color: var(--ink); }
.chip-count { opacity: 0.7; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--fire); color: var(--text); }
  .chip[aria-pressed="true"]:hover { color: var(--ink); }
}

.proyectos-list { display: grid; gap: clamp(16px, 2vw, 24px); }
.proyecto {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + var(--safe-top) + 24px);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.proyecto[hidden] { display: none; }
.proyecto:target {
  border-color: var(--fire);
  box-shadow: 0 0 0 1px var(--fire), 0 24px 80px -24px rgba(255, 77, 0, 0.45);
}
.proyecto-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.proyecto-num {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 0.12em; line-height: 1;
  padding: 6px 10px;
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid var(--line-2);
}
.proyecto-body {
  flex: 1;
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3vw, 40px);
}
.proyecto-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fire);
}
.proyecto-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.proyecto-desc { color: var(--text-2); font-size: 16px; line-height: 1.7; max-width: 52ch; }
.proyecto-meta { margin-top: auto; padding-top: 8px; }
.proyecto-meta > div {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.proyecto-meta dt {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-3);
  padding-top: 3px;
}
.proyecto-meta dd { font-weight: 500; color: var(--text); }
@media (min-width: 900px) {
  .proyectos-list { grid-template-columns: 1fr 1fr; }
  .proyecto--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .proyecto--featured .proyecto-media { aspect-ratio: auto; min-height: 480px; }
}
@media (hover: hover) and (pointer: fine) {
  .proyecto:hover .media img { transform: scale(1.04); }
}

/* =========================================================
   NOSOTROS PAGE
   ========================================================= */
.figures { background: var(--fire); color: var(--ink); }
.figures-grid { display: grid; grid-template-columns: 1fr 1fr; }
.figure {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px;
  padding: 28px 16px 28px 20px;
  border-left: 1px solid rgba(11, 11, 13, 0.2);
}
.figure:nth-child(odd) { border-left: 0; padding-left: 0; }
.figure:nth-child(n + 3) { border-top: 1px solid rgba(11, 11, 13, 0.2); }
.figure dd {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.88;
  font-variant-numeric: tabular-nums;
}
.figure dt {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1.35;
}
@media (min-width: 900px) {
  .figures-grid { grid-template-columns: repeat(4, 1fr); }
  .figure, .figure:nth-child(odd) { padding: 52px 32px; border-left: 1px solid rgba(11, 11, 13, 0.2); }
  .figure:first-child { border-left: 0; padding-left: 0; }
  .figure:nth-child(n + 3) { border-top: 0; }
}

.pillars { background: var(--bg-1); }
.pillars-grid { display: grid; gap: 4px; }
.pillar {
  position: relative;
  background: var(--bg-3);
  padding: 32px 24px 36px;
  overflow: hidden;
  transition: background-color 0.3s var(--ease-out);
}
.pillar::before {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--fire);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.pillar-num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-display);
  font-size: 56px; line-height: 1;
  color: rgba(255, 255, 255, 0.05);
}
.pillar-icon { width: 40px; height: 40px; color: var(--fire); margin-bottom: 28px; }
.pillar h3 {
  font-family: var(--font-cond);
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 10px;
}
.pillar p { color: var(--text-2); font-size: 15px; line-height: 1.65; }
@media (min-width: 600px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .pillar { padding: 40px 32px 44px; }
}
@media (min-width: 1100px) {
  .pillars-grid { grid-template-columns: repeat(4, 1fr); }
  .pillar { min-height: 340px; }
}
@media (hover: hover) and (pointer: fine) {
  .pillar:hover { background: var(--bg-4); }
  .pillar:hover::before { transform: scaleX(1); }
}

.method { background: var(--bg-2); }
.steps { display: grid; }
.step { position: relative; padding: 0 0 40px 60px; }
.step::before {
  content: '';
  position: absolute; left: 20px; top: 48px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--fire), var(--line-2));
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step-num {
  position: absolute; left: 0; top: 0;
  width: 41px; height: 41px;
  display: grid; place-items: center;
  border: 1px solid var(--fire);
  background: var(--bg-2);
  color: var(--fire);
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: 0.06em; line-height: 1;
}
.step h3 {
  font-family: var(--font-cond);
  font-size: 24px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.1;
  margin: 8px 0 10px;
}
.step p { color: var(--text-2); font-size: 15px; line-height: 1.65; max-width: 40ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step { padding: 72px 0 0; }
  .step::before { left: 56px; right: -24px; top: 20px; bottom: auto; width: auto; height: 1px; background: linear-gradient(to right, var(--fire), var(--line-2)); }
  .step-num { width: 41px; }
}

.sectors { background: var(--bg-1); }
.sectors-list { border-top: 1px solid var(--line); }
.sector {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 20px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.sector-num {
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: 0.08em;
  color: var(--fire);
}
.sector h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.95;
  letter-spacing: 0.02em; text-transform: uppercase;
  transition: color 0.25s var(--ease-out);
}
.sector p { grid-column: 2; color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 46ch; }
.sector-ref { grid-column: 2; justify-self: start; color: var(--fire); }
@media (min-width: 900px) {
  .sector {
    grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) minmax(220px, auto);
    gap: 32px; align-items: center;
    padding: 36px 0;
  }
  .sector p { grid-column: auto; }
  .sector-ref { grid-column: auto; justify-self: end; }
}
@media (hover: hover) and (pointer: fine) {
  .sector:hover h3 { color: var(--fire); }
  .sector-ref:hover { color: var(--text); }
}

.standards {
  background: var(--bg-2);
  padding: clamp(72px, 9vw, 128px) 0;
}
.standards-inner { display: grid; gap: 40px; }
.standards-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 0.95;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.standards-inner .lead { margin-top: 20px; }
.codes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.code {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 128px;
  padding: 18px 16px;
  background: var(--bg-3);
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out);
}
.code strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.85;
  color: var(--fire);
}
.code span {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.35;
  color: var(--text-2);
}
.code:active { background: var(--bg-4); }
@media (min-width: 600px) { .code { padding: 22px 20px; min-height: 150px; } .code span { font-size: 12px; } }
@media (min-width: 900px) {
  .standards-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); align-items: center; gap: clamp(56px, 7vw, 112px); }
}
@media (hover: hover) and (pointer: fine) { .code:hover { background: var(--bg-4); } }

/* Reduced-motion: page-level entrance animations */
@media (prefers-reduced-motion: reduce) {
  .breadcrumb { opacity: 1; animation: none; }
}
