/* ==========================================================================
   COSINTE — Architectural Preventive Security Design System
   Single geometric typeface (Plus Jakarta Sans)
   Studio obsidian + deep corporate navy + champagne gold + crisp stark slate
   ========================================================================== */

:root {
  --bg-obsidian: #05070b;
  --bg-obsidian-elevated: #0b0f18;
  --bg-navy: #0b1f3b;
  --bg-light: #ffffff;
  --bg-slate: #f4f6fa;

  --ink-light: #f2f5fa;
  --ink-light-muted: #98a4b8;
  --ink-dark: #0a101d;
  --ink-dark-muted: #4b576d;

  --gold: #e6c55b;
  --gold-bright: #f4d36a;
  --navy-accent: #193166;

  --line-dark: rgba(255, 255, 255, 0.11);
  --line-light: rgba(10, 16, 29, 0.11);

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius-sm: 6px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-obsidian);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-dark);
  background-color: var(--bg-obsidian);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   HEADER — Single clean row, zero wrapping, zero clutter
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  background-color: rgba(7, 15, 29, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.65s ease, transform 0.65s ease, background-color 0.08s ease, border-color 0.08s ease;
}

body.is-revealed .site-header {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-header.is-scrolled {
  background-color: rgba(5, 7, 11, 0.95);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 1.15rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: var(--ink-light);
  flex-shrink: 0;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(242, 245, 250, 0.78);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.lang-switch {
  position: relative;
  z-index: 5;
  display: inline-flex;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  padding: 2px;
  cursor: pointer;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-light-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.62rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  background-color: var(--ink-light);
  color: var(--bg-obsidian);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.56rem 1.18rem;
  border-radius: var(--radius-pill);
  background-color: var(--gold);
  color: var(--bg-obsidian);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background-color: var(--gold-bright);
}

.mobile-menu-btn {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: var(--ink-light);
  transition: transform 0.2s ease;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  top: 72px;
  z-index: 39;
  background-color: var(--bg-obsidian);
  padding: 2rem var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--line-dark);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-light);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-drawer-meta {
  color: var(--ink-light-muted);
  font-size: 0.85rem;
}

.mobile-drawer-meta p {
  margin: 0.25rem 0;
}

/* ==========================================================================
   HERO — Diagonal Blue & Gold Split + Single-Tick Zoom-Through Reveal
   ========================================================================== */

.hero-scroll-track {
  position: relative;
  height: 0;
}

.hero {
  position: fixed;
  inset: 0;
  height: 100svh;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-navy);
  overflow: hidden;
  padding: 5.5rem 0 5.5rem;
  pointer-events: auto;
  will-change: transform, opacity;
  transform-origin: center center;
  transition:
    transform 1.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.15s ease,
    visibility 1.35s ease;
}

.hero-stage {
  position: relative;
  width: 100%;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 2;
  will-change: transform;
  transition: transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-summary {
  margin: 0;
  max-width: 52ch;
  text-align: center;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(7, 20, 41, 0.55);
}

body.is-hero-dismissed .hero {
  transform: scale(1.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-hero-dismissed .hero-stage {
  transform: scale(2.35);
}

#nosotros.editorial-band {
  position: relative;
  z-index: 1;
  padding-top: clamp(6.5rem, 10vw, 9.5rem);
}

.hero-split-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-half-blue {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #071429 0%, #0b1f3b 58%, #132d57 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.hero-half-gold {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #f2d472 0%, #e6c55b 52%, #cfa732 100%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* Single directional 45-degree studio key light */
.hero-studio-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    46% 42% at 45% 32%,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(0, 0, 0, 0.22) 100%
  );
}

/* Solid, normal, uncut edge-to-edge COSINTE typography */
.hero-display {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(4.2rem, 17.5vw, 15.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #ffffff;
  text-shadow: 0 14px 36px rgba(7, 20, 41, 0.3);
  user-select: none;
}

/* Original COSINTE emblem floating cleanly ABOVE the title */
.hero-sculpture-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.18s ease-out;
}

.sculpture-float {
  animation: studioFloat 7s ease-in-out infinite;
}

@keyframes studioFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-9px);
  }
}

.hero-full-logo {
  width: min(86vw, 860px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(5, 12, 26, 0.52));
}

.emblem-gold-wrap {
  position: relative;
  display: inline-block;
  width: clamp(128px, 16vw, 224px);
}

.emblem-original-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: brightness(1.08) contrast(1.12) saturate(1.18)
    drop-shadow(0 18px 28px rgba(5, 12, 26, 0.55));
}

/* Crisp modern polished-gold specular glints masked strictly to the emblem */
.emblem-gold-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    132deg,
    rgba(255, 255, 255, 0) 22%,
    rgba(255, 253, 240, 0.25) 29%,
    rgba(255, 255, 255, 0.96) 32%,
    rgba(255, 250, 224, 0.2) 35%,
    rgba(255, 255, 255, 0) 44%,
    rgba(255, 255, 255, 0) 68%,
    rgba(255, 255, 255, 0.88) 72%,
    rgba(255, 255, 255, 0) 76%
  );
  mix-blend-mode: screen;
  opacity: 0.9;
  -webkit-mask-image: url("../assets/logos/cosinte-emblema.png");
  mask-image: url("../assets/logos/cosinte-emblema.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.sculpture-floor-shadow {
  width: clamp(96px, 12vw, 175px);
  height: 16px;
  margin-top: 10px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(5, 12, 26, 0.45) 0%,
    rgba(5, 12, 26, 0.16) 52%,
    rgba(5, 12, 26, 0) 78%
  );
}

/* Corner-anchored verified metadata leaving ~60% clean space (reveals after intro) */
.hero-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.65s ease;
  z-index: 3;
}

body.is-revealed .hero-corners {
  opacity: 1;
}

.hero-corner-bl .corner-label,
.hero-corner-br .corner-label {
  color: #0b1f3b;
}

.hero-corner-bl .corner-value,
.hero-corner-br .corner-value {
  color: rgba(11, 31, 59, 0.78);
}

.hero-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-corner-tl {
  top: 6.5rem;
  left: var(--gutter);
}

.hero-corner-tr {
  top: 6.5rem;
  right: var(--gutter);
  text-align: right;
}

.hero-corner-bl {
  bottom: 2.25rem;
  left: var(--gutter);
}

.hero-corner-br {
  bottom: 2.25rem;
  right: var(--gutter);
  text-align: right;
}

.corner-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-light);
  letter-spacing: 0.01em;
}

.corner-value {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-light-muted);
}

/* One single frosted-glass bar */
.hero-glass-bar {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem;
  border-radius: var(--radius-pill);
  background: rgba(7, 15, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

body.is-revealed .hero-glass-bar {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.glass-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.glass-action-secondary {
  color: var(--ink-light);
}

.glass-action-secondary:hover,
.glass-action-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.glass-action-primary {
  background-color: var(--ink-light);
  color: var(--bg-obsidian);
}

.glass-action-primary:hover,
.glass-action-primary:focus-visible {
  background-color: var(--gold);
  color: var(--bg-obsidian);
}

/* ==========================================================================
   SECTIONS — Shared Architectural Rhythm
   ========================================================================== */

.section-light {
  background-color: var(--bg-light);
  color: var(--ink-dark);
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

.section-obsidian {
  background-color: var(--bg-obsidian);
  color: var(--ink-light);
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

.section-navy {
  background-color: var(--bg-navy);
  color: var(--ink-light);
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink-dark);
}

.section-title-light {
  margin: 0;
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink-light);
}

/* ==========================================================================
   SECTION 2: EDITORIAL THESIS, HAIRLINE PILLARS & VERIFIED METRICS
   ========================================================================== */

.editorial-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line-light);
}

.lead-copy {
  margin: 0 0 1.25rem;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-dark);
}

.sub-copy {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-dark-muted);
  line-height: 1.65;
}

.pillars-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-light);
}

.pillar-row {
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2.25rem);
}

.pillar-row:first-child {
  padding-left: 0;
}

.pillar-row:last-child {
  padding-right: 0;
}

.pillar-row + .pillar-row {
  border-left: 1px solid var(--line-light);
}

.pillar-name {
  margin: 0 0 0.85rem;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-accent);
}

.pillar-desc {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-dark-muted);
  line-height: 1.6;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-top: clamp(2.5rem, 4.5vw, 4rem);
}

.metric-cell {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.metric-figure {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink-dark);
}

.metric-caption {
  font-size: 0.88rem;
  color: var(--ink-dark-muted);
  max-width: 24ch;
  line-height: 1.45;
}

/* ==========================================================================
   SECTION 3: CIA 2.0 PLATFORM & METHODOLOGY
   ========================================================================== */

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line-dark);
}

.platform-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cia-brand-logo {
  height: 34px;
  width: auto;
  margin-bottom: 1.65rem;
  filter: brightness(0) invert(1);
}

.platform-lead {
  margin: 1.5rem 0 2.25rem;
  font-size: 1.08rem;
  color: var(--ink-light-muted);
  line-height: 1.65;
  max-width: 50ch;
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  background-color: var(--gold);
  color: var(--bg-obsidian);
  font-size: 0.9rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background-color: var(--gold-bright);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--ink-light);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  border-color: var(--ink-light);
  background-color: rgba(255, 255, 255, 0.06);
}

.methodology-table {
  border-top: 1px solid var(--line-dark);
}

.method-item {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 1.25rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: baseline;
}

.method-head {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.method-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-light-muted);
  line-height: 1.55;
}

.compliance-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
}

.compliance-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.compliance-code {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-light);
}

.compliance-detail {
  font-size: 0.84rem;
  color: var(--ink-light-muted);
}

/* ==========================================================================
   SECTION 4: 22 SERVICES ARCHITECTURAL LEDGER
   ========================================================================== */

.services-band {
  background-color: var(--bg-slate);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.services-intro {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: var(--ink-dark-muted);
  max-width: 60ch;
}

.services-controls {
  flex: 1 1 320px;
  max-width: 420px;
}

.search-field input {
  width: 100%;
  padding: 0.88rem 1.15rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  background-color: var(--bg-light);
  color: var(--ink-dark);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-field input:focus {
  border-color: var(--navy-accent);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.cat-tab {
  appearance: none;
  border: 1px solid var(--line-light);
  background-color: var(--bg-light);
  color: var(--ink-dark-muted);
  padding: 0.58rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cat-tab:hover {
  color: var(--ink-dark);
  border-color: rgba(10, 16, 29, 0.3);
}

.cat-tab.is-active {
  background-color: var(--bg-obsidian);
  border-color: var(--bg-obsidian);
  color: var(--ink-light);
}

.services-count-bar {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-dark-muted);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-light);
}

.services-ledger {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 185px minmax(0, 1.2fr) minmax(0, 1.3fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.35rem 0.5rem;
  border-bottom: 1px solid var(--line-light);
  transition: background-color 0.18s ease;
}

.service-row:hover {
  background-color: rgba(25, 49, 102, 0.035);
}

.service-cat {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy-accent);
}

.service-name {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--ink-dark);
  line-height: 1.35;
}

.service-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-dark-muted);
  line-height: 1.5;
}

.service-open-btn {
  appearance: none;
  border: 1px solid var(--line-light);
  background-color: var(--bg-light);
  color: var(--ink-dark);
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-open-btn:hover,
.service-open-btn:focus-visible {
  background-color: var(--bg-obsidian);
  border-color: var(--bg-obsidian);
  color: var(--ink-light);
}

.services-empty {
  padding: 3rem 0;
  color: var(--ink-dark-muted);
  font-size: 0.98rem;
}

/* ==========================================================================
   SECTION 5: INSTITUTIONAL BACKING / TESTIMONIALS
   ========================================================================== */

.backing-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.client-tabs {
  display: flex;
  flex-direction: column;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line-dark);
}

.client-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  padding: 1.15rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--ink-light-muted);
  transition: color 0.2s ease;
}

.client-tab-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: inherit;
}

.client-tab-role {
  font-size: 0.84rem;
  color: rgba(242, 245, 250, 0.58);
}

.client-tab.is-active {
  color: var(--gold);
}

.client-tab.is-active .client-tab-role {
  color: var(--ink-light);
}

.backing-band {
  overflow: hidden;
}

.backing-quote-panel {
  padding: clamp(2rem, 4vw, 3rem);
  background-color: rgba(5, 7, 11, 0.34);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  transform-origin: left top;
  will-change: transform, opacity;
}

.backing-quote-panel.is-dropping {
  animation: cardSlideOutLeft 0.34s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardSlideOutLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-110px);
    opacity: 0;
  }
}

.backing-quote-panel.is-entering {
  animation: cardSlideInRight 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardSlideInRight {
  from {
    opacity: 0;
    transform: translateX(110px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.quote-text {
  margin: 0 0 2rem;
  font-size: clamp(1.15rem, 1.9vw, 1.48rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-light);
}

.quote-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}

.quote-author strong {
  font-size: 1rem;
  color: var(--gold);
}

.quote-author span {
  font-size: 0.88rem;
  color: var(--ink-light-muted);
}

/* ==========================================================================
   SECTION 6: UNIFIED CONTACT & CAREERS WORKSPACE
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.contact-lead {
  margin: 1.25rem 0 2.25rem;
  font-size: 1rem;
  color: var(--ink-dark-muted);
}

.offices-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-top: 1px solid var(--line-light);
  padding-top: 1.75rem;
}

.office-block h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-accent);
}

.office-block p {
  margin: 0.2rem 0;
  font-size: 0.92rem;
  color: var(--ink-dark-muted);
}

.office-block a {
  color: var(--ink-dark);
  font-weight: 600;
  border-bottom: 1px solid rgba(10, 16, 29, 0.25);
}

.office-block a:hover {
  border-bottom-color: var(--ink-dark);
}

.contact-workspace {
  background-color: var(--bg-slate);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.form-mode-switch {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.3rem;
  background-color: var(--bg-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  margin-bottom: 1.75rem;
}

.mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-dark-muted);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mode-btn.is-active {
  background-color: var(--bg-obsidian);
  color: var(--ink-light);
}

.editorial-form[hidden] {
  display: none;
}

.editorial-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-dark);
}

.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(10, 16, 29, 0.16);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  color: var(--ink-dark);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  border-color: var(--navy-accent);
}

.field-group input[type="file"] {
  padding: 0.52rem 0.7rem;
  font-size: 0.85rem;
  color: var(--ink-dark-muted);
}

.field-group input[type="file"]::file-selector-button {
  appearance: none;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--bg-obsidian);
  color: var(--ink-light);
  padding: 0.45rem 0.95rem;
  margin-right: 0.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.field-group input[type="file"]::file-selector-button:hover {
  background-color: var(--navy-accent);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.policy-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--ink-dark-muted);
  cursor: pointer;
}

.policy-check a {
  color: var(--ink-dark);
  font-weight: 600;
  text-decoration: underline;
}

.btn-dark {
  appearance: none;
  border: 0;
  background-color: var(--bg-obsidian);
  color: var(--ink-light);
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background-color: var(--navy-accent);
}

.form-feedback {
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.25rem;
}

.form-feedback.is-success {
  color: #155e34;
}

.form-feedback.is-error {
  color: #9e1c1c;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--bg-obsidian);
  color: var(--ink-light);
  padding-block: 4.5rem 2.5rem;
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.15rem;
}

.group-logos-list {
  gap: 0.75rem;
}

.group-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.94);
  width: fit-content;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.group-logo-link:hover {
  background-color: #ffffff;
  transform: translateY(-1px);
}

.group-logo-link img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-light-muted);
  max-width: 34ch;
  line-height: 1.6;
}

.footer-heading {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-light);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--ink-light-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--ink-light-muted);
}

/* ==========================================================================
   SERVICE DETAIL DRAWER
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(5, 7, 11, 0.7);
  backdrop-filter: blur(6px);
}

.drawer-backdrop[hidden],
.service-drawer[hidden] {
  display: none;
}

.service-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(560px, 100vw);
  background-color: var(--bg-light);
  color: var(--ink-dark);
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--line-light);
}

.drawer-category {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-accent);
}

.drawer-close {
  appearance: none;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--ink-dark);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.drawer-close:hover {
  background-color: var(--bg-slate);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.drawer-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.drawer-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-accent);
}

.drawer-section p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-dark-muted);
  line-height: 1.6;
}

.drawer-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--line-light);
  background-color: var(--bg-slate);
}

.drawer-cta {
  width: 100%;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1080px) {
  .editorial-split,
  .platform-grid,
  .backing-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .pillars-ledger {
    grid-template-columns: 1fr;
  }

  .pillar-row {
    padding: 1.65rem 0;
  }

  .pillar-row + .pillar-row {
    border-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .metrics-strip,
  .compliance-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-row {
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1.25rem;
  }

  .service-cat {
    grid-column: 1 / -1;
  }

  .service-summary {
    grid-column: 1 / -1;
    order: 3;
  }

  .service-open-btn {
    order: 4;
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .brand-logo-img {
    height: 34px;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-corner-bl,
  .hero-corner-br {
    display: none;
  }

  .hero-corner-tl,
  .hero-corner-tr {
    top: 5.5rem;
    max-width: 44%;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 6rem;
    padding-bottom: 6.5rem;
  }

  .hero-corner .corner-value {
    display: none;
  }

  .hero-display {
    font-size: clamp(3.3rem, 20vw, 5.2rem);
  }

  .emblem-medallion {
    width: 118px;
    height: 118px;
    border-radius: 18px;
  }

  .sculpture-floor-shadow {
    margin-top: 18px;
  }

  .hero-glass-bar {
    width: calc(100% - 2rem);
    justify-content: space-between;
  }

  .glass-action {
    flex: 1;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
  }

  .metrics-strip,
  .compliance-bar,
  .form-row-two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .method-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-open-btn {
    justify-self: start;
  }
}

/* ==========================================================================
   ALTERNATING BLUE / GOLD SECTION RHYTHM
   Sec 2 (#nosotros): Blue | Sec 3 (#plataforma): Gold | Sec 4 (#servicios): Blue
   Sec 5 (#respaldo): Gold | Sec 6 (#contacto): Blue
   ========================================================================== */

/* Section 2 — Nosotros (Blue) */
#nosotros.editorial-band {
  background-color: var(--bg-navy);
  color: var(--ink-light);
}

#nosotros .section-title,
#nosotros .lead-copy,
#nosotros .metric-figure {
  color: var(--ink-light);
}

#nosotros .sub-copy,
#nosotros .pillar-desc,
#nosotros .metric-caption {
  color: rgba(242, 245, 250, 0.76);
}

#nosotros .pillar-name {
  color: var(--gold);
}

#nosotros .editorial-split,
#nosotros .pillars-ledger {
  border-bottom-color: var(--line-dark);
}

#nosotros .pillar-row + .pillar-row {
  border-left-color: var(--line-dark);
}

/* Section 3 — CIA 2.0 Platform (Gold) */
#plataforma.platform-band {
  background-color: var(--gold);
  color: var(--bg-navy);
}

#plataforma .cia-brand-logo {
  filter: none;
}

#plataforma .section-title-light,
#plataforma .method-head,
#plataforma .compliance-code {
  color: var(--bg-navy);
}

#plataforma .platform-lead,
#plataforma .method-text,
#plataforma .compliance-detail {
  color: rgba(11, 31, 59, 0.82);
}

#plataforma .platform-grid,
#plataforma .methodology-table,
#plataforma .method-item {
  border-color: rgba(11, 31, 59, 0.18);
}

#plataforma .btn-gold {
  background-color: var(--bg-navy);
  color: var(--ink-light);
}

#plataforma .btn-gold:hover,
#plataforma .btn-gold:focus-visible {
  background-color: #061224;
}

#plataforma .btn-outline-light {
  color: var(--bg-navy);
  border-color: rgba(11, 31, 59, 0.38);
}

#plataforma .btn-outline-light:hover,
#plataforma .btn-outline-light:focus-visible {
  border-color: var(--bg-navy);
  background-color: rgba(11, 31, 59, 0.08);
}

/* Section 4 — Services Ledger (Blue) */
#servicios.services-band {
  background-color: var(--bg-navy);
  color: var(--ink-light);
}

#servicios .section-title,
#servicios .service-name {
  color: var(--ink-light);
}

#servicios .services-intro,
#servicios .services-count-bar,
#servicios .service-summary,
#servicios .services-empty {
  color: rgba(242, 245, 250, 0.76);
}

#servicios .service-cat {
  color: var(--gold);
}

#servicios .services-count-bar,
#servicios .service-row {
  border-bottom-color: var(--line-dark);
}

#servicios .service-row:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

#servicios .search-field input {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ink-light);
}

#servicios .search-field input::placeholder {
  color: rgba(242, 245, 250, 0.62);
}

#servicios .search-field input:focus {
  border-color: var(--gold);
}

#servicios .cat-tab {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(242, 245, 250, 0.8);
}

#servicios .cat-tab:hover {
  color: var(--ink-light);
  border-color: rgba(255, 255, 255, 0.36);
}

#servicios .cat-tab.is-active {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--bg-navy);
}

#servicios .service-open-btn {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ink-light);
}

#servicios .service-open-btn:hover,
#servicios .service-open-btn:focus-visible {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--bg-navy);
}

/* Section 5 — Institutional Backing (Gold) */
#respaldo.backing-band {
  background-color: var(--gold);
  color: var(--bg-navy);
}

#respaldo .section-title-light,
#respaldo .quote-text,
#respaldo .quote-author strong {
  color: var(--bg-navy);
}

#respaldo .client-tabs,
#respaldo .client-tab,
#respaldo .quote-author {
  border-color: rgba(11, 31, 59, 0.18);
}

#respaldo .client-tab {
  color: rgba(11, 31, 59, 0.68);
}

#respaldo .client-tab-role,
#respaldo .quote-author span {
  color: rgba(11, 31, 59, 0.72);
}

#respaldo .client-tab.is-active {
  color: var(--bg-navy);
}

#respaldo .client-tab.is-active .client-tab-role {
  color: var(--bg-navy);
}

#respaldo .backing-quote-panel {
  background-color: rgba(11, 31, 59, 0.08);
  border-color: rgba(11, 31, 59, 0.18);
}

/* Section 6 — Contact & Careers (Blue) */
#contacto.contact-band {
  background-color: var(--bg-navy);
  color: var(--ink-light);
}

#contacto .section-title {
  color: var(--ink-light);
}

#contacto .contact-lead,
#contacto .office-block p {
  color: rgba(242, 245, 250, 0.78);
}

#contacto .office-block h3 {
  color: var(--gold);
}

#contacto .offices-list {
  border-top-color: var(--line-dark);
}

#contacto .office-block a {
  color: var(--ink-light);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

#contacto .contact-workspace {
  background-color: var(--bg-light);
  border-color: transparent;
  color: var(--ink-dark);
}

@media (max-width: 1080px) {
  #nosotros .pillar-row + .pillar-row {
    border-left: 0;
    border-top-color: var(--line-dark);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-scroll-track {
    height: auto;
  }

  .hero {
    position: relative;
    height: 100svh;
  }

  #nosotros.editorial-band {
    margin-top: 0;
  }

  .sculpture-float {
    animation: none;
  }

  .hero-sculpture-wrap {
    transition: none;
  }

  .site-header,
  .hero-glass-bar {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .hero-glass-bar {
    transform: translateX(-50%);
  }
}
