/* ==========================================================================
   OBRES VIALCON — Awwwards 2027 Architectural Design System
   Pure CSS, Zero-CLS, 60fps GPU-Composited Choreography, AA+ Contrast
   ========================================================================== */

:root {
  --ground-light: #f3f3f0;
  --surface-white: #ffffff;
  --ground-dark: #0a111d;
  --surface-dark: #121c2e;
  --ink-dark: #0d1523;
  --ink-muted: #4b5565;
  --ink-light: #f6f7f9;
  --ink-light-muted: #b4c0d2;
  --accent: #1652e6;
  --accent-hover: #0f3fbb;
  --accent-amber: #d97706;
  --line-light: rgba(13, 21, 35, 0.12);
  --line-dark: rgba(246, 247, 249, 0.15);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --ease-arch: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --container: 1320px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ground-dark);
  color: var(--ink-dark);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink-dark);
  background: var(--ground-light);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Skip link & visible keyboard focus */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--ink-dark);
  color: var(--ink-light);
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-arch);
}
.skip-link:focus { top: 16px; }

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

.wrap {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ==========================================================================
   HEADER / NAVIGATION — Minimal Floating Architectural Chrome (Video Match)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: var(--ink-light);
  transition: background-color 0.35s var(--ease-arch), border-color 0.35s var(--ease-arch), color 0.35s var(--ease-arch), backdrop-filter 0.35s var(--ease-arch);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 17, 29, 0.44) 0%, rgba(10, 17, 29, 0.1) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.is-solid,
.site-header.is-inner {
  background: rgba(243, 243, 240, 0.9);
  color: var(--ink-dark);
  border-bottom-color: var(--line-light);
}

.site-header.is-dark-stage {
  background: rgba(10, 17, 29, 0.86);
  color: var(--ink-light);
  border-bottom-color: var(--line-dark);
}

.header-grid {
  width: min(100% - 40px, 1440px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 0;
  white-space: nowrap;
  transition: opacity 0.25s var(--ease-arch);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-arch);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-self: center;
}
.brand-mark svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.92;
}
.lang-switch a {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background-color 0.25s var(--ease-arch), color 0.25s var(--ease-arch);
}
.lang-switch a[aria-current="true"] {
  background: currentColor;
}
.lang-switch a[aria-current="true"] span {
  color: var(--ground-dark);
}
.site-header.is-solid .lang-switch a[aria-current="true"] span,
.site-header.is-inner .lang-switch a[aria-current="true"] span {
  color: var(--ground-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-arch), background-color 0.28s var(--ease-arch), color 0.28s var(--ease-arch), box-shadow 0.35s var(--ease-arch);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-dark {
  background: var(--ink-dark);
  color: var(--ink-light);
}
.btn-dark:hover { background: var(--accent); box-shadow: 0 12px 30px rgba(22, 82, 230, 0.28); }

.btn-light {
  background: var(--surface-white);
  color: var(--ink-dark);
}
.btn-light:hover { background: var(--accent); color: var(--ink-light); }

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink-light);
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(8px);
}
.btn-outline-light:hover { background: var(--surface-white); color: var(--ink-dark); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink-dark);
  border-color: rgba(13, 21, 35, 0.28);
}
.btn-outline-dark:hover { background: var(--ink-dark); color: var(--ink-light); }

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 14px 32px rgba(22, 82, 230, 0.32); }

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ground-dark);
  color: var(--ink-light);
  padding: 24px 24px 40px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.28s var(--ease-arch);
}
.mobile-drawer.open {
  display: flex;
  opacity: 1;
}
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.mobile-drawer-nav a {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-dark);
}

/* ==========================================================================
   STAGE 1: FULL-BLEED ARCHITECTURAL HERO (VIDEO FRAME 00:00)
   ========================================================================== */
.hero-stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: #1b4f8c;
  color: var(--ink-light);
  padding-top: calc(var(--nav-h) + 28px);
  padding-bottom: 36px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  will-change: transform;
  transform: scale(1.03);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 17, 29, 0.56) 0%, rgba(10, 17, 29, 0.24) 45%, rgba(10, 17, 29, 0.62) 100%),
    linear-gradient(90deg, rgba(10, 17, 29, 0.54) 0%, rgba(10, 17, 29, 0.14) 56%, rgba(10, 17, 29, 0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.hero-top {
  max-width: 820px;
  padding-top: clamp(20px, 4vh, 52px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-amber);
  display: inline-block;
}

.hero-title {
  margin: 16px 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4.95rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-right: 76px;
}

.glass-badge {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 14px;
  max-width: 390px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius-md);
  background: rgba(10, 17, 29, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink-light);
}
.glass-badge img {
  width: 76px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}
.glass-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.glass-badge span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.38;
  color: rgba(246, 247, 249, 0.86);
}

.hero-meta-card {
  max-width: 430px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(10, 17, 29, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}
.hero-meta-card p {
  margin: 0 0 10px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(246, 247, 249, 0.94);
}
.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.hero-quick-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   STAGE 2: LUMINOUS EDITORIAL MANIFESTO + 4 FLOATING PARALLAX CARDS (00:03-04)
   ========================================================================== */
.manifesto-stage {
  position: relative;
  background: var(--ground-light);
  color: var(--ink-dark);
  padding: clamp(96px, 14vw, 170px) 0;
  overflow: hidden;
}

.topo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 700' fill='none'%3E%3Cpath d='M-120 560C220 420 560 660 980 410C1220 265 1380 180 1560 90' stroke='%230D1523' stroke-opacity='0.06' stroke-width='2'/%3E%3Cpath d='M-120 490C240 340 590 580 1010 340C1260 198 1390 120 1560 30' stroke='%230D1523' stroke-opacity='0.05' stroke-width='2'/%3E%3Cpath d='M-120 630C210 510 540 720 960 490C1210 350 1370 250 1560 170' stroke='%230D1523' stroke-opacity='0.04' stroke-width='2'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.manifesto-canvas {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 72px 0;
}

.manifesto-copy {
  position: relative;
  z-index: 3;
  max-width: 680px;
  text-align: center;
}

.manifesto-title {
  margin: 18px 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.45vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.inline-pill-photo {
  display: inline-block;
  vertical-align: middle;
  width: clamp(64px, 7vw, 112px);
  height: clamp(38px, 4.2vw, 62px);
  border-radius: 14px;
  object-fit: cover;
  margin: -6px 8px 0;
  box-shadow: 0 12px 28px rgba(13, 21, 35, 0.18);
}

.manifesto-lead {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.float-card {
  position: absolute;
  z-index: 2;
  width: clamp(140px, 13.5vw, 196px);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-white);
  box-shadow: 0 22px 48px rgba(13, 21, 35, 0.14);
  border: 1px solid rgba(13, 21, 35, 0.08);
  will-change: transform;
}
.float-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.float-card figcaption {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
}
.float-tl { top: 0; left: 0; }
.float-tr { top: 0; right: 0; }
.float-bl { bottom: 0; left: 1%; }
.float-br { bottom: 0; right: 1%; }

.proof-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.proof-item {
  background: var(--surface-white);
  padding: 24px;
}
.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-dark);
}
.proof-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   STAGE 3: DEEP SLATE DARK STAGE + 3D FANNING SERVICE DECK (VIDEO 00:05-07)
   ========================================================================== */
.deck-stage {
  position: relative;
  background: var(--ground-dark);
  color: var(--ink-light);
  padding: clamp(88px, 11vw, 150px) 0;
  overflow: hidden;
}

.deck-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.deck-header h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 680px;
}
.deck-header p {
  max-width: 420px;
  margin: 0;
  color: var(--ink-light-muted);
}

.fan-deck-viewport {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  margin: 12px 0 56px;
}

.fan-card {
  position: absolute;
  width: clamp(240px, 24vw, 330px);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-light);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--surface-dark);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.52);
  will-change: transform;
  transition: box-shadow 0.4s var(--ease-arch), border-color 0.4s var(--ease-arch);
}
.fan-card:hover,
.fan-card:focus-visible,
.fan-card.is-active {
  z-index: 30 !important;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 40px 90px rgba(22, 82, 230, 0.34);
}
.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-arch);
}
.fan-card:hover img { transform: scale(1.06); }

.fan-card-overlay {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(10, 17, 29, 0.22) 0%, rgba(10, 17, 29, 0.1) 42%, rgba(10, 17, 29, 0.88) 100%);
}
.fan-card-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(246, 247, 249, 0.85);
}
.fan-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.fan-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.44;
  color: rgba(246, 247, 249, 0.86);
}

.deck-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 44px;
}
.deck-pill {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-light-muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-arch), color 0.25s var(--ease-arch), border-color 0.25s var(--ease-arch);
}
.deck-pill:hover,
.deck-pill.is-active {
  background: var(--surface-white);
  color: var(--ink-dark);
  border-color: var(--surface-white);
}

.deck-statement {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.deck-statement h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
}
.deck-statement p {
  margin: 0 0 24px;
  color: var(--ink-light-muted);
}

/* ==========================================================================
   STAGE 4: PANORAMIC "HOW WE BUILD" WITH FLOATING GLASS STEPS (VIDEO 00:08)
   ========================================================================== */
.process-stage {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ground-dark);
  color: var(--ink-light);
  padding: clamp(96px, 12vw, 150px) 0;
}

.process-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.process-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) contrast(1.06);
}
.process-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 17, 29, 0.72) 0%, rgba(10, 17, 29, 0.34) 45%, rgba(10, 17, 29, 0.84) 100%);
}

.process-giant-type {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 48px;
}
.process-giant-type h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 6.8vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.process-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(10, 17, 29, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.45s var(--ease-arch), border-color 0.35s var(--ease-arch);
}
.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.5);
}
.process-card:nth-child(2) { margin-top: 28px; }
.process-card:nth-child(3) { margin-top: 8px; }
.process-card:nth-child(4) { margin-top: 38px; }

.process-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: #7eb0ff;
  margin-bottom: 14px;
}
.process-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.process-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.52;
  color: rgba(246, 247, 249, 0.84);
}

/* ==========================================================================
   STAGE 5: SCROLL-EXPANDING ARCHITECTURAL SHOWCASE (VIDEO 00:09-10)
   ========================================================================== */
.expand-stage {
  background: var(--ground-dark);
  color: var(--ink-light);
  padding: clamp(72px, 10vw, 130px) 0;
  overflow: hidden;
}

.expand-frame-wrap {
  width: min(100% - 32px, 1380px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.expand-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 76vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: scale(0.84);
  transform-origin: center center;
  will-change: transform, border-radius;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
}
.expand-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expand-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(10, 17, 29, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}
.expand-caption h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
}
.expand-caption p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(246, 247, 249, 0.86);
}

/* ==========================================================================
   STAGE 6: CATALONIA HUBS, EDITORIAL SLIDER (VIDEO 00:11), FAQ & QUOTE FORM
   ========================================================================== */
.section-light {
  background: var(--ground-light);
  color: var(--ink-dark);
  padding: clamp(76px, 9vw, 128px) 0;
}

.section-white {
  background: var(--surface-white);
  color: var(--ink-dark);
  padding: clamp(76px, 9vw, 128px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}
.section-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 720px;
}
.section-head p {
  margin: 0;
  max-width: 440px;
  color: var(--ink-muted);
}

/* Editorial Highlight Slider (01/04 Video Frame 00:11) */
.editorial-slider {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 28px;
}
.slider-index {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.slider-nav-btns {
  display: flex;
  gap: 8px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(13, 21, 35, 0.24);
  background: var(--surface-white);
  color: var(--ink-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background-color 0.25s var(--ease-arch), color 0.25s var(--ease-arch), transform 0.25s var(--ease-arch);
}
.icon-btn:hover { background: var(--ink-dark); color: var(--ink-light); transform: translateY(-1px); }

.slider-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background: var(--surface-dark);
}
.slide-item {
  display: none;
  position: relative;
  min-height: 420px;
}
.slide-item.is-active { display: grid; place-items: end start; }
.slide-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-card {
  position: relative;
  z-index: 2;
  margin: 24px;
  max-width: 560px;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-dark);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px rgba(10, 17, 29, 0.24);
}
.slide-card blockquote {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 500;
}
.slide-card footer {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.slider-side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slider-tab {
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-light);
  background: var(--surface-white);
  color: var(--ink-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-arch);
}
.slider-tab.is-active,
.slider-tab:hover {
  background: var(--ink-dark);
  color: var(--ink-light);
  border-color: var(--ink-dark);
}

/* Regional Coverage Cards */
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.region-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--surface-white);
  border: 1px solid var(--line-light);
  text-decoration: none;
  transition: transform 0.35s var(--ease-arch), border-color 0.3s var(--ease-arch), box-shadow 0.35s var(--ease-arch);
}
.region-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(13, 21, 35, 0.09);
}
.region-card .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
}
.region-card h3 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.region-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.region-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-dark);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}
.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface-white);
  border: 1px solid var(--line-light);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body {
  padding: 0 24px 22px;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Contact / Quote Band */
.quote-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: start;
}
.quote-info {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--ground-dark);
  color: var(--ink-light);
}
.quote-info h2 {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.04;
  text-transform: uppercase;
}
.quote-info p { color: var(--ink-light-muted); }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 14px;
}
.contact-list li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
}
.contact-list small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-light-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-list a, .contact-list strong {
  font-family: var(--font-heading);
  font-size: 1.04rem;
  text-decoration: none;
}

.quote-form {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface-white);
  border: 1px solid var(--line-light);
  box-shadow: 0 20px 50px rgba(13, 21, 35, 0.06);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-dark);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(13, 21, 35, 0.2);
  background: #fafaf8;
  color: var(--ink-dark);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 82, 230, 0.14);
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}
.form-status.ok { display: block; background: #e8f7ee; color: #0c5c30; border: 1px solid #9ddbb6; }
.form-status.err { display: block; background: #fdecec; color: #8c1d1d; border: 1px solid #f5b4b4; }

/* ==========================================================================
   INNER SEO PAGES (SERVICES, MANO DE OBRA, PROVINCES, LEGAL)
   ========================================================================== */
.inner-hero {
  background: var(--ground-dark);
  color: var(--ink-light);
  padding: calc(var(--nav-h) + 56px) 0 68px;
  position: relative;
  overflow: hidden;
}
.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(22, 82, 230, 0.24), transparent 55%);
  pointer-events: none;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-light-muted);
  margin-bottom: 18px;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink-light); text-decoration: underline; }

.inner-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.inner-hero h1 {
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.inner-hero .lead {
  font-size: 1.12rem;
  color: var(--ink-light-muted);
  max-width: 660px;
  margin: 0 0 26px;
}
.inner-hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  aspect-ratio: 4 / 3;
}
.inner-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}
.prose h2 {
  margin: 40px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink-dark);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 26px 0 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--ink-dark);
}
.prose p { margin: 0 0 16px; color: #243042; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; color: #243042; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
.spec-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface-white);
  border: 1px solid var(--line-light);
}
.spec-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.spec-card p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  background: var(--surface-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-light);
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.94rem;
}
.compare-table th {
  background: var(--ground-dark);
  color: var(--ink-light);
  font-family: var(--font-heading);
  font-weight: 600;
}

.sticky-aside {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: 18px;
}
.aside-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface-white);
  border: 1px solid var(--line-light);
}
.aside-card-dark {
  background: var(--ground-dark);
  color: var(--ink-light);
  border-color: var(--line-dark);
}
.aside-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}
.aside-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.aside-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-dark);
  transition: background-color 0.2s;
}
.aside-links a:hover,
.aside-links a[aria-current="page"] {
  background: var(--ground-light);
  color: var(--accent);
  font-weight: 600;
}

.service-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-white);
  border: 1px solid var(--line-light);
  text-decoration: none;
  transition: transform 0.35s var(--ease-arch), box-shadow 0.35s var(--ease-arch);
}
.catalog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(13, 21, 35, 0.1);
}
.catalog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.catalog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.catalog-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.catalog-card-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   FOOTER + FLOATING WHATSAPP / PHONE DOCK
   ========================================================================== */
.site-footer {
  background: var(--ground-dark);
  color: var(--ink-light);
  padding: 72px 0 36px;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-col h3 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light-muted);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}
.footer-col a {
  text-decoration: none;
  font-size: 0.92rem;
  color: rgba(246, 247, 249, 0.86);
  transition: color 0.2s;
}
.footer-col a:hover { color: #ffffff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 0.84rem;
  color: var(--ink-light-muted);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-legal-links a { text-decoration: none; }
.footer-legal-links a:hover { text-decoration: underline; color: #ffffff; }

.quick-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dock-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(10, 17, 29, 0.32);
  transition: transform 0.28s var(--ease-arch);
}
.dock-btn:hover { transform: scale(1.08); }
.dock-wa { background: #169c4b; }
.dock-tel { background: var(--accent); }

/* Reveal helper — visible by default if JS off or reduced-motion */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.65s var(--ease-arch), transform 0.75s var(--ease-arch);
}
.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   RESPONSIVE — DESIGNED FOR 390px MOBILE & TABLET
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-left { display: none; }
  .header-grid { grid-template-columns: auto 1fr auto; }
  .brand-mark { justify-self: start; }
  .mobile-menu-btn { display: inline-flex; }
  .header-cta-desktop { display: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-card:nth-child(n) { margin-top: 0; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-slider { grid-template-columns: 1fr; }
  .slider-side-list { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .inner-hero-grid,
  .article-layout,
  .quote-grid { grid-template-columns: 1fr; }
  .service-catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .float-card { width: 140px; }
}

@media (max-width: 720px) {
  :root { --nav-h: 66px; }
  .wrap { width: min(100% - 28px, var(--container)); }
  .header-grid { width: min(100% - 28px, 1440px); gap: 8px; }
  .brand-mark { font-size: 0.9rem; letter-spacing: 0.04em; white-space: nowrap; gap: 7px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .hero-stage { min-height: 92svh; padding-bottom: 92px; }
  .hero-title { font-size: clamp(2.05rem, 9.2vw, 2.7rem); }
  .hero-bottom { padding-right: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .glass-badge { grid-template-columns: 60px 1fr; max-width: 100%; }
  .hero-meta-card { max-width: 100%; }
  .quick-dock { right: 12px; bottom: 12px; flex-direction: row; }
  .dock-btn { width: 46px; height: 46px; }
  .manifesto-canvas { min-height: auto; padding: 12px 0; }
  .float-card { position: static; width: 100%; margin-top: 14px; }
  .float-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 24px;
  }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .fan-deck-viewport {
    min-height: auto;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 8px 4px 16px;
    -webkit-overflow-scrolling: touch;
  }
  .fan-card {
    position: relative;
    flex: 0 0 80vw;
    width: 80vw;
    transform: none !important;
    scroll-snap-align: center;
  }
  .process-grid,
  .region-grid,
  .service-catalog-grid,
  .spec-grid,
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .expand-frame { transform: none !important; border-radius: var(--radius-md); }
  .expand-caption { position: static; margin-top: 12px; }
  .quote-info, .quote-form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
  .expand-frame { transform: none !important; }
}
