/* ============================================================================
   MYDAS — High Security
   Brand identity: Métodos y Desarrollos de Alta Seguridad S.A.
   ----------------------------------------------------------------------------
   Palette
   --------
   #FAF8F3  cream    (canvas)
   #FFFFFF  paper
   #031B32  azul marino   (text + accent sections)
   #C9A04B  oro principal
   #B49046  oro secundario
   #8F7843  oro oscuro
   #5E563A  neutro cálido

   Type
   ----
   Montserrat (300/400/500/600/700)  — brand primary
   Cormorant Garamond (italic)        — editorial accents
   JetBrains Mono (300/400)           — technical / numeric
============================================================================ */

:root {
  --navy:       #031B32;
  --navy-soft:  #0A2D52;
  --gold:       #C9A04B;
  --gold-2:     #B49046;
  --gold-3:     #8F7843;
  --warm:       #5E563A;
  --cream:      #FAF8F3;
  --cream-2:    #F4EFE3;
  --paper:      #FFFFFF;
  --ink:        #1A1A1A;
  --ink-dim:    rgba(3, 27, 50, 0.65);
  --ink-soft:   rgba(3, 27, 50, 0.45);
  --line:       rgba(3, 27, 50, 0.12);
  --line-gold:  rgba(201, 160, 75, 0.30);
  --line-gold-soft: rgba(201, 160, 75, 0.15);
  --shadow-soft:  0 30px 80px -30px rgba(3, 27, 50, 0.18);
  --shadow-strong: 0 50px 100px -40px rgba(3, 27, 50, 0.35);
  --ease:       cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;  /* prevent iOS from auto-resizing text */
  text-size-adjust: 100%;
}
body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Prevent rubber-band scrolling on iOS that exposes the body background */
  overscroll-behavior-y: none;
}
img, svg { max-width: 100%; height: auto; }
* { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--gold); color: var(--navy); }

/* ==========================================================================
   TYPE SYSTEM
========================================================================== */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-3);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before {
  width: 40px;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}
h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-3);
}
p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-dim);
  line-height: 1.75;
}
.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

/* ==========================================================================
   LAYOUT
========================================================================== */
.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}
section {
  position: relative;
  padding: clamp(80px, 9vw, 140px) 0;
}
.section-head {
  margin-bottom: clamp(60px, 7vw, 100px);
}
.section-head .eyebrow {
  margin-bottom: 24px;
}

/* ==========================================================================
   REVEAL ANIMATIONS
========================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.18s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.31s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.44s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.57s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.70s; opacity: 1; transform: none; }

.reveal-up { opacity: 0; transform: translateY(60px); transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out); }
.reveal-up.in { opacity: 1; transform: none; }

/* ==========================================================================
   TOP NOTICE BAR
========================================================================== */
.notice {
  background: var(--navy);
  color: rgba(232, 228, 216, 0.85);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  padding: 10px 0;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 160, 75, 0.18);
  overflow: hidden;
  white-space: nowrap;
}
.notice-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.notice .notice-text {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}
.notice .pulse {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   NAVIGATION
========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(250, 248, 243, 0.96);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 40px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
/* Nudge the top-nav logo ~1cm to the right (not the drawer/footer) */
.nav-inner .nav-brand { margin-left: 38px; }
@media (max-width: 600px) { .nav-inner .nav-brand { margin-left: 16px; } }
.nav-brand .logo-mark {
  width: 58px;
  height: auto;
  display: block;
  color: var(--gold);
  transition: transform 0.5s var(--ease);
}
.nav-brand:hover .logo-mark { transform: rotate(-3deg); }
.nav-brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.nav-brand .wordmark .name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--navy);
}
.nav-brand .wordmark .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--gold-3);
  margin-top: 6px;
  white-space: nowrap;
}
/* Slight shrink when nav becomes scrolled */
.nav.scrolled .nav-brand .logo-mark { width: 48px; }
.nav.scrolled .nav-brand .wordmark .name { font-size: 19px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-menu a {
  position: relative;
  color: var(--navy);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.3s ease;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold);
  width: 0;
  transition: width 0.4s var(--ease);
}
.nav-menu a:hover { color: var(--gold-3); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.active { color: var(--gold-3); }
.nav-menu a.active::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--navy);
  transition: all 0.3s var(--ease);
  border-radius: 100px;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-3); }
.lang-toggle .lang-item { transition: color 0.3s ease; opacity: 0.4; }
.lang-toggle .lang-item.active { color: var(--gold-3); opacity: 1; font-weight: 500; }
.lang-toggle .sep { opacity: 0.4; }
.lang-toggle svg { width: 12px; height: 12px; color: var(--gold-3); }

.nav-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--navy);
  padding: 13px 22px;
  text-decoration: none;
  border: 1px solid var(--navy);
  transition: all 0.35s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
}
.nav-cta span, .nav-cta svg { position: relative; z-index: 1; }
.nav-cta:hover { color: var(--navy); border-color: var(--gold); }
.nav-cta:hover::before { transform: translateX(0); }
.nav-cta .arrow { transition: transform 0.3s var(--ease); width: 12px; height: 12px; }
.nav-cta:hover .arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 40px; height: 40px;
  cursor: pointer;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  border-radius: 100px;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 200;
  padding: 32px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.nav-drawer ul li a {
  display: block;
  padding: 22px 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-drawer ul li a:hover { color: var(--gold-3); }
.nav-drawer .nav-cta { margin-top: 40px; align-self: flex-start; }
.nav-drawer .drawer-lang {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.nav-drawer .drawer-lang-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--gold-3);
  text-transform: uppercase;
}
.nav-drawer .drawer-lang .lang-toggle {
  background: none;
  border: 1px solid var(--line);
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  transition: border-color 0.3s var(--ease);
  min-height: 44px;
}
.nav-drawer .drawer-lang .lang-toggle:hover { border-color: var(--gold); }
.nav-drawer .drawer-lang .lang-item {
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.nav-drawer .drawer-lang .lang-item.active { color: var(--gold); font-weight: 600; }
.nav-drawer .drawer-lang .lang-divider { color: var(--ink-soft); opacity: 0.5; }

/* ==========================================================================
   HERO  (light, editorial)
========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  background: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(3, 27, 50, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 27, 50, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 90%);
  pointer-events: none;
}

/* Decorative compass / radar */
.hero-compass {
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 900px; height: 900px;
  pointer-events: none;
  opacity: 0.55;
}
.hero-compass .ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(201, 160, 75, 0.18);
  border-radius: 50%;
}
.hero-compass .ring.r2 { inset: 10%; border-color: rgba(201, 160, 75, 0.20); }
.hero-compass .ring.r3 { inset: 22%; border-color: rgba(201, 160, 75, 0.22); }
.hero-compass .ring.r4 { inset: 36%; border-color: rgba(201, 160, 75, 0.28); }
.hero-compass .cross {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(201, 160, 75, 0.16) calc(50% - 0.5px), rgba(201, 160, 75, 0.16) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(201, 160, 75, 0.16) calc(50% - 0.5px), rgba(201, 160, 75, 0.16) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  border-radius: 50%;
}
.hero-compass .marks {
  position: absolute;
  inset: 0;
  animation: rotate 60s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.hero-compass .marks span {
  position: absolute;
  width: 12px; height: 1px;
  background: var(--gold);
  top: 50%; left: 0;
  transform-origin: 450px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
}
.hero-eyebrow-block {
  margin-bottom: 36px;
  animation: fadeUp 1s var(--ease-out) 0.1s both;
}

.hero h1 {
  color: var(--navy);
  margin-bottom: 32px;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  /* Extend clip area top and bottom so accents (í) and descenders (g, p, y) aren't cut */
  padding: 0.12em 0 0.18em;
  margin: -0.12em 0 -0.18em;
}
.hero h1 .line span {
  display: inline-block;
  animation: heroLine 1.2s var(--ease-out) both;
}
.hero h1 .line:nth-child(1) span { animation-delay: 0.15s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.30s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.45s; }
.hero h1 .gold-it {
  color: var(--gold);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
}
@keyframes heroLine {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--navy);
  max-width: 58ch;
  margin-bottom: 48px;
  animation: fadeUp 1s var(--ease-out) 0.7s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 1s var(--ease-out) 0.85s both;
}
.btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 28px;
  text-decoration: none;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.btn .arrow { transition: transform 0.3s var(--ease); width: 12px; height: 12px; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
}
.btn-primary span, .btn-primary .arrow { position: relative; z-index: 1; }
.btn-primary:hover { color: var(--navy); border-color: var(--gold); }
.btn-primary:hover::before { transform: translateX(0); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-3); }

/* Hero shield artwork */
.hero-shield {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.4s var(--ease-out) 0.5s both;
}
.hero-shield-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.hero-shield svg,
.hero-shield img {
  width: 100%;
  height: auto;
  display: block;
  color: var(--gold);
  filter: drop-shadow(0 30px 50px rgba(201, 160, 75, 0.18));
}
.hero-shield::before {
  content: '';
  position: absolute;
  inset: -10%;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero-shield::after {
  content: '';
  position: absolute;
  inset: -22%;
  border: 1px dashed var(--line-gold-soft);
  border-radius: 50%;
  animation: rotate 80s linear infinite;
}

/* When hero-shield is also hero-map, swap in rectangular framing instead of circular */
.hero-map {
  /* hides the circular ::before / ::after rings inherited from .hero-shield */
}
.hero-map::before,
.hero-map::after { display: none; }
.hero-map .hero-map-wrap {
  position: relative;
  width: 100%;
  max-width: 780px;
}
.hero-map .map-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(3, 27, 50, 0.10));
}
@keyframes float {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero base strip */
.hero-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold-3);
  background: rgba(250, 248, 243, 0.7);
  backdrop-filter: blur(6px);
}
.hero-strip .scroll-cue {
  display: flex; align-items: center; gap: 14px;
}
.hero-strip .scroll-bar {
  width: 32px; height: 1px;
  background: var(--line-gold);
  overflow: hidden;
  position: relative;
}
.hero-strip .scroll-bar::after {
  content: '';
  position: absolute;
  left: -10px; top: 0;
  width: 10px; height: 1px;
  background: var(--gold);
  animation: scrollDot 2.2s linear infinite;
}
@keyframes scrollDot {
  0%   { left: -10px; }
  100% { left: 32px; }
}

/* ==========================================================================
   TRUST STRIP
========================================================================== */
.trust {
  background: var(--navy);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}
.trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(201, 160, 75, 0.08), transparent 50%);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(232, 228, 216, 0.8);
  text-transform: uppercase;
}
.trust-item strong {
  color: var(--gold);
  font-weight: 400;
}
.trust .sep {
  width: 1px;
  height: 18px;
  background: rgba(201, 160, 75, 0.25);
}

/* ==========================================================================
   ABOUT
========================================================================== */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 90px;
  align-items: center;
}
.about-visual {
  position: relative;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.about-visual .corner {
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--gold);
  z-index: 3;
}
.about-visual .corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.about-visual .corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.about-visual .corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.about-visual .corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.about-card { position: relative; }
.about-card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy);
}
.about-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.04);
  transition: transform 1.4s var(--ease);
}
.about-visual:hover .about-card-img img { transform: scale(1.04); }
.about-card-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201, 160, 75, 0.45);
  pointer-events: none;
  z-index: 2;
}

.about-text h2 { margin-bottom: 32px; }
.about-text .lead { margin-bottom: 28px; }
.about-text p { margin-bottom: 20px; }

/* Quote outside the visual, below — editorial pull-quote */
.about-quote {
  margin: clamp(80px, 9vw, 120px) auto 0;
  max-width: 920px;
  text-align: center;
  position: relative;
  padding: 0 40px;
}
.about-quote-mark {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 96px;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 12px;
  user-select: none;
}
.about-quote blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.35;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0;
}
.about-quote figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--gold-3);
  text-transform: uppercase;
}
.about-quote-line {
  width: 56px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ==========================================================================
   STATS / CIFRAS
========================================================================== */
.stats {
  background: var(--paper);
  padding: clamp(80px, 9vw, 130px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(60px, 7vw, 90px);
}
.stats-head h2 { margin-top: 20px; }
.stats-head .serif-em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  padding: 56px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  background: var(--paper);
  transition: background 0.5s var(--ease);
}
.stat:hover { background: var(--cream); }
.stat .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold-3);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.stat .meta::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.stat .figure {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat .figure .plus { font-size: 0.45em; color: var(--gold); font-weight: 400; }
.stat .figure .unit { font-size: 0.4em; color: var(--gold); font-weight: 500; margin-left: 6px; }
.stat .desc {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ==========================================================================
   PILLARS  (Lo que nos define)
========================================================================== */
.pillars {
  background: var(--cream);
}
.pillars-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(60px, 7vw, 90px);
}
.pillars-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 20px;
  padding-bottom: 0.08em;
}
.pillars-head h2 em {
  font-style: italic;
  color: var(--gold);
}
.pillars-head p { margin-top: 20px; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillar {
  padding: 56px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: transparent;
  position: relative;
  transition: background 0.5s var(--ease);
  cursor: default;
}
.pillar:hover { background: var(--paper); }
.pillar .num {
  position: absolute;
  top: 24px; right: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}
.pillar .ico {
  width: 56px; height: 56px;
  margin: 0 auto 28px;
  color: var(--gold);
  transition: transform 0.5s var(--ease);
}
.pillar:hover .ico { transform: translateY(-4px); }
.pillar h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.pillar p {
  font-size: 0.92rem;
  color: var(--ink-dim);
  line-height: 1.65;
}

/* ==========================================================================
   CAPACIDADES (Capabilities)  —  big visual sections
========================================================================== */
.caps {
  background: var(--cream);
  position: relative;
}
.caps-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: clamp(60px, 7vw, 100px);
}
.caps-head h2 { margin-top: 20px; }
.caps-head .serif-em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}
.caps-head .intro { color: var(--ink-dim); max-width: 50ch; }

.cap-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cap-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.cap-block:first-child { border-top: none; }
.cap-block.reverse .cap-art { order: -1; }

.cap-content { position: relative; }
.cap-content .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold-3);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cap-content .num::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}
.cap-content h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: 28px;
  text-transform: none;
}
.cap-content h3 .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.cap-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-dim);
  margin-bottom: 36px;
}

.cap-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 14px 0;
  position: relative;
  transition: color 0.3s ease;
}
.cap-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.cap-link:hover { color: var(--gold-3); }
.cap-link .arrow {
  width: 24px; height: 12px;
  transition: transform 0.4s var(--ease);
}
.cap-link:hover .arrow { transform: translateX(6px); }

/* Cap artwork tiles */
.cap-art {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.cap-art:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}
.cap-art .frame-corner {
  position: absolute;
  width: 20px; height: 20px;
  border: 1px solid var(--gold);
  z-index: 3;
}
.cap-art .frame-corner.tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.cap-art .frame-corner.tr { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.cap-art .frame-corner.bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.cap-art .frame-corner.br { bottom: 16px; right: 16px; border-left: none; border-top: none; }
.cap-art .frame-label {
  position: absolute;
  bottom: 22px; left: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  z-index: 4;
  text-shadow: 0 1px 6px rgba(3, 27, 50, 0.8);
}
.cap-art .frame-meta {
  position: absolute;
  top: 22px; right: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--gold);
  z-index: 4;
  text-shadow: 0 1px 6px rgba(3, 27, 50, 0.8);
}
.cap-art svg.scene {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* Photo variant inside cap-art */
.cap-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}
.cap-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.06);
  transition: transform 1.4s var(--ease);
}
.cap-art:hover .cap-photo img { transform: scale(1.05); }
.cap-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(3,27,50,0.10) 0%, rgba(3,27,50,0.30) 50%, rgba(3,27,50,0.55) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Scene 1 — Defense (radar) */
.scene-defense .ring-rotate { transform-origin: 50% 50%; animation: rotate 25s linear infinite; }
.scene-defense .sweep-rotate { transform-origin: 50% 50%; animation: rotate 7s linear infinite; }
.scene-defense .ping-1 { animation: ping-anim 3s infinite 0.5s; transform-origin: center; }
.scene-defense .ping-2 { animation: ping-anim 3s infinite 1.8s; transform-origin: center; }
@keyframes ping-anim {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Scene 2 — Infrastructure */
.scene-infra .shield-pulse { animation: shield-pulse 3.5s infinite; transform-origin: center; }
@keyframes shield-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.scene-infra .scan-line {
  animation: scan-vert 4s linear infinite;
}
@keyframes scan-vert {
  0% { transform: translateY(-20%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(120%); opacity: 0; }
}

/* Scene 3 — Engineering */
.scene-eng .node-pulse { animation: node-pulse 2.8s infinite; }
@keyframes node-pulse {
  0%, 100% { opacity: 0.3; r: 3; }
  50% { opacity: 1; r: 5; }
}
.scene-eng .connection {
  stroke-dasharray: 4 4;
  animation: dash 18s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -200; }
}

/* ==========================================================================
   SECTORES — visual, immersive
========================================================================== */
.sectors {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.sectors-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: clamp(60px, 7vw, 80px);
}
.sectors-head h2 { margin-top: 20px; }
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* New photo-driven sector card */
.sector-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--navy);
  cursor: pointer;
  isolation: isolate;
}
.sector-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy);
}
.sector-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease);
  filter: saturate(0.92) contrast(1.05);
}
.sector-card:hover .sector-photo img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.08);
}
.sector-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(3, 27, 50, 0.12) 0%,
      rgba(3, 27, 50, 0.18) 35%,
      rgba(3, 27, 50, 0.78) 80%,
      rgba(3, 27, 50, 0.94) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.sector-card:hover .sector-overlay {
  background:
    linear-gradient(180deg,
      rgba(3, 27, 50, 0.18) 0%,
      rgba(3, 27, 50, 0.28) 35%,
      rgba(3, 27, 50, 0.82) 80%,
      rgba(3, 27, 50, 0.96) 100%);
}
.sector-card .sector-num {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold);
  font-weight: 500;
}
.sector-card .sector-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 160, 75, 0.55);
  background: rgba(3, 27, 50, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.5s var(--ease);
}
.sector-card .sector-badge svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}
.sector-card:hover .sector-badge {
  border-color: var(--gold);
  background: rgba(3, 27, 50, 0.7);
  box-shadow: 0 0 24px rgba(201, 160, 75, 0.25);
}
.sector-card .sector-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px 28px;
  z-index: 2;
  color: #fff;
}
.sector-card .sector-content::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 14px;
  transition: width 0.5s var(--ease);
}
.sector-card:hover .sector-content::before {
  width: 64px;
}
.sector-card .sector-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}
.sector-card .sector-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

/* ==========================================================================
   CERTIFICACIONES — elegant medallions
========================================================================== */
.certs {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.certs::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 160, 75, 0.05), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(201, 160, 75, 0.04), transparent 50%);
  pointer-events: none;
}
.certs-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(60px, 7vw, 80px);
  position: relative;
}
.certs-head h2 {
  margin-top: 20px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.2;
  padding-bottom: 0.08em;
}
.certs-head h2 em {
  color: var(--gold);
  font-style: italic;
}
.certs-head .not-italic {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 600;
}
.certs-head p { margin-top: 20px; }

/* Category */
.cert-group {
  margin-bottom: 60px;
  position: relative;
}
.cert-group-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}
.cert-group-head .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold-3);
}
.cert-group-head h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--navy);
}
.cert-group-head .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Cert medallions */
.cert-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.cert-medal {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 16px 22px;
  text-align: center;
  position: relative;
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 240px;
}
.cert-medal:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}
.cert-medal .cert-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.cert-medal .cert-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s var(--ease);
}
.cert-medal:hover .cert-logo img { transform: scale(1.05); }

/* AENOR text-based variant (no official logo) */
.cert-medal-text .aenor-mark {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold-3);
  padding: 12px 6px;
  background: var(--paper);
}
.cert-medal-text .aenor-mark .aenor-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--navy);
  line-height: 1;
}
.cert-medal-text .aenor-mark .aenor-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin: 9px 0;
}
.cert-medal-text .aenor-mark .aenor-iso {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold-3);
}

.cert-medal .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 8px;
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.cert-medal .code {
  font-size: 10px;
  color: var(--gold-3);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  width: 100%;
  margin-top: auto;
}

/* Minister rows */
.cert-min-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 30px;
}
.cert-min-block {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 36px 32px;
  position: relative;
}
.cert-min-block .ministerio {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cert-min-block h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.cert-min-block ul {
  list-style: none;
}
.cert-min-block ul li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cert-min-block ul li:last-child { border-bottom: 1px solid var(--line); }
.cert-min-block ul li .check {
  width: 18px; height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}
.cert-min-block ul li .ref {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-right: 6px;
}
.cert-min-block ul li .desc {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

/* Featured highlight band */
.cert-feature {
  margin-top: 50px;
  background: var(--navy);
  padding: 50px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.cert-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(201, 160, 75, 0.10), transparent 50%);
  pointer-events: none;
}
.cert-feature .feat {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  position: relative;
}
.cert-feature .feat .ico {
  width: 44px; height: 44px;
  color: var(--gold);
  flex-shrink: 0;
}
.cert-feature .feat .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cert-feature .feat .val {
  font-size: 1.1rem;
  font-weight: 600;
  color: #FAF8F3;
  line-height: 1.3;
  margin-bottom: 8px;
}
.cert-feature .feat .desc {
  font-size: 12px;
  color: rgba(232, 228, 216, 0.65);
  line-height: 1.6;
}

/* ==========================================================================
   CTA  (final, no contact)
========================================================================== */
.cta {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 160, 75, 0.12), transparent 50%);
}
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 160, 75, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 160, 75, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 90%);
}
.cta-inner {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cta-inner .eyebrow {
  color: var(--gold);
  justify-content: center;
}
.cta-inner .eyebrow::before {
  background: var(--gold);
}
.cta-inner h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: var(--cream);
  line-height: 1.15;
  margin: 24px 0 28px;
}
.cta-inner h2 .gold {
  color: var(--gold);
}
.cta-inner h2 .not-it {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 600;
}
.cta-inner p {
  font-size: 1.1rem;
  color: rgba(232, 228, 216, 0.75);
  max-width: 58ch;
  margin: 0 auto 48px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.cta .btn-primary::before { background: var(--cream); }
.cta .btn-primary:hover { color: var(--navy); border-color: var(--cream); }
.cta .btn-ghost {
  color: var(--cream);
  border-color: rgba(201, 160, 75, 0.4);
}
.cta .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   FOOTER  (minimal, no contact)
========================================================================== */
footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.footer-brand .logo-wrap svg,
.footer-brand .logo-wrap img {
  width: 52px;
  height: auto;
  display: block;
  color: var(--gold);
}
.footer-brand .logo-wrap .name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.22em;
}
.footer-brand .logo-wrap .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--gold-3);
  margin-top: 4px;
  display: block;
}
.footer-brand p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.7;
  max-width: 38ch;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold-3);
  margin-bottom: 26px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul li a {
  color: var(--navy);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul li a:hover { color: var(--gold-3); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.footer-bottom .legal {
  display: flex; gap: 24px;
}
.footer-bottom .legal a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-bottom .legal a:hover { color: var(--gold-3); }

/* ==========================================================================
   SUBPAGE HEADER  (used in subpages)
========================================================================== */
.sub-hero {
  position: relative;
  padding: 140px 0 100px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(3, 27, 50, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 27, 50, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 10%, transparent 80%);
}
.sub-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
.sub-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.sub-hero h1 .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.sub-hero .lead {
  font-size: 1.2rem;
  max-width: 56ch;
}
.sub-hero-meta {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold-3);
  text-transform: uppercase;
}
.sub-hero-meta a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.sub-hero-meta a:hover { color: var(--gold-3); }
.sub-hero-meta .sep {
  width: 12px; height: 1px;
  background: var(--gold);
}

.sub-hero-art {
  position: relative;
  aspect-ratio: 1;
  background: var(--navy);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.sub-hero-art .corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
  z-index: 4;
}
.sub-hero-art .corner.tl { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.sub-hero-art .corner.tr { top: 18px; right: 18px; border-left: none; border-bottom: none; }
.sub-hero-art .corner.bl { bottom: 18px; left: 18px; border-right: none; border-top: none; }
.sub-hero-art .corner.br { bottom: 18px; right: 18px; border-left: none; border-top: none; }
.sub-hero-art svg.scene {
  width: 80%;
  height: 80%;
}
/* Photo variant inside sub-hero-art */
.sub-hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.sub-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.06);
}
.sub-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,27,50,0.05) 0%, rgba(3,27,50,0.25) 60%, rgba(3,27,50,0.5) 100%);
  pointer-events: none;
}

/* Sub content sections */
.sub-section {
  padding: clamp(70px, 8vw, 110px) 0;
}
.sub-section.alt { background: var(--paper); }

.sub-twocol {
  display: block;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.sub-twocol .col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.36em;
  color: var(--gold-3);
  text-transform: uppercase;
  position: static;
  display: block;
  margin-bottom: 24px;
}
.sub-twocol h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 32px;
  line-height: 1.15;
}
.sub-twocol h2 em {
  color: var(--gold);
  font-style: italic;
}
.sub-twocol h2 .not-it {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 600;
}
.sub-twocol p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 22px;
}

.sub-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.sub-card {
  background: var(--cream);
  padding: 36px 32px;
  position: relative;
  text-align: left;
  transition: background 0.4s var(--ease);
}
.sub-card:hover { background: var(--paper); }
.sub-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold-3);
  margin-bottom: 18px;
}
.sub-card .ico {
  width: 40px; height: 40px;
  color: var(--gold);
  margin-bottom: 20px;
}
.sub-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-transform: none;
}
.sub-card p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.65;
}

.sub-pull {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.sub-pull blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sub-pull blockquote .gold { color: var(--gold); }
.sub-pull cite {
  display: block;
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold-3);
  text-transform: uppercase;
  font-style: normal;
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 140px 0 44px;
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--navy);
  line-height: 1.1;
  margin-top: 16px;
}
.legal-hero .updated {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.legal-body {
  padding: 56px 0 96px;
  max-width: 820px;
  margin: 0 auto;
}
.legal-body h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 46px 0 14px;
  letter-spacing: -0.01em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.legal-body ul { padding-left: 22px; margin-bottom: 18px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--gold-3); text-decoration: underline; }
.legal-body strong { color: var(--navy); font-weight: 600; }
.legal-id {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px 28px;
  margin: 8px 0 30px;
}
.legal-id p { margin-bottom: 6px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
  font-size: 0.92rem;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
  width: 32%;
}
.legal-table td { color: var(--ink-dim); line-height: 1.6; }

.sub-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--navy);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.sub-back:hover { color: var(--gold-3); }
.sub-back .arrow {
  width: 18px; height: 12px;
  transition: transform 0.4s var(--ease);
}
.sub-back:hover .arrow { transform: translateX(-4px); }

/* ==========================================================================
   MOBILE
========================================================================== */
/* ==========================================================================
   RESPONSIVE BREAKPOINTS  (mobile-first refinements)

   Target devices:
   - Tablet portrait + small laptops: 1024px
   - Tablet portrait small + landscape phones: 768px
   - Standard mobile portrait: 600px
   - Small mobile (iPhone SE, older Android): 380px
========================================================================== */

/* ---------- ≤1024px: Tablet ---------- */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  #langToggle { display: none; }  /* desktop lang toggle hidden; mobile version is in drawer */
  .nav-toggle { display: inline-flex; }
  .container { padding: 0 28px; }
  .nav-brand .logo-mark { width: 46px; }
  .nav-brand .wordmark .name { font-size: 18px; }
  .nav-brand .wordmark .tag { font-size: 9px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-compass { right: -300px; opacity: 0.25; }
  /* Map is too important to hide; show smaller below the text */
  .hero-shield { max-width: 560px; margin: 0 auto; }
  .hero-shield .hero-map-wrap { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .caps-head { grid-template-columns: 1fr; gap: 24px; }
  .cap-block { grid-template-columns: 1fr; gap: 30px; padding: 50px 0; }
  .cap-block.reverse .cap-art { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-head { grid-template-columns: 1fr; gap: 16px; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cert-feature { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .cert-min-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .sub-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .sub-hero-art { max-width: 360px; }
  .sub-twocol { grid-template-columns: 1fr; gap: 32px; }
  .sub-twocol .col-label { position: static; }
  .trust-inner { justify-content: center; }
  .trust .sep { display: none; }
}

/* ---------- ≤768px: Tablet portrait small + Mobile landscape ---------- */
@media (max-width: 768px) {
  .container { padding: 0 24px; }

  /* Solid nav background on mobile - backdrop-filter unreliable on some Android browsers */
  .nav {
    background: rgba(250, 248, 243, 0.97);
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .nav.scrolled {
    background: var(--cream);
    box-shadow: 0 2px 14px rgba(3, 27, 50, 0.06);
  }

  /* Header & nav */
  .notice { font-size: 10px; padding: 7px 0; letter-spacing: 0.16em; }
  .notice-inner { padding: 0 8px; }
  .nav { padding: 12px 0; }
  .nav.scrolled { padding: 10px 0; }
  .nav-brand .logo-mark { width: 40px; }
  .nav-brand .wordmark .name { font-size: 15px; letter-spacing: 0.15em; }
  .nav-brand .wordmark .tag { font-size: 7.5px; letter-spacing: 0.25em; margin-top: 4px; }
  .nav-actions { gap: 10px; }
  .nav-cta {
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: 0.18em;
    min-height: 44px;
  }
  .nav-cta .arrow { display: none; }

  /* Hero */
  .hero {
    padding: 70px 0 0;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .hero > .container { width: 100%; }
  .hero-eyebrow-block { margin-bottom: 24px; }
  .hero-content .eyebrow { font-size: 10px; }
  .hero-sub { font-size: 1.05rem; line-height: 1.55; margin-top: 24px; max-width: none; }
  .hero-actions { margin-top: 32px; gap: 14px; }
  .hero-strip {
    position: static;
    width: 100%;
    font-size: 9px;
    padding: 14px 24px;
    letter-spacing: 0.16em;
    border-top: 1px solid var(--line);
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    margin-top: 30px;
  }
  .hero-strip > span:not(.scroll-cue) { flex: 1; min-width: 0; }
  .hero-strip .scroll-cue { display: none !important; }

  /* Mobile map: shrink width so vertical footprint stays reasonable (≈340px tall) */
  .hero-shield {
    max-width: 100%;
    animation: none;
    opacity: 1;
  }
  .hero-shield .hero-map-wrap {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-map .map-svg {
    width: 100%;
    height: auto;
    display: block;
  }

  /* About */
  .about { padding: clamp(60px, 12vw, 90px) 0; }
  .about-grid { gap: 32px; }
  .about-visual { padding: 14px; }
  .about-text h2 { margin-bottom: 24px; }
  .about-text .lead { margin-bottom: 22px; }
  .about-text p { font-size: 0.96rem; line-height: 1.65; }
  .about-quote { margin-top: 60px; padding: 0 16px; }
  .about-quote-mark { font-size: 70px; margin-bottom: 4px; }
  .about-quote blockquote { font-size: 1.25rem; line-height: 1.4; }
  .about-quote figcaption { margin-top: 28px; font-size: 9px; gap: 12px; }
  .about-quote-line { width: 36px; }

  /* Stats */
  .stats { padding: clamp(60px, 11vw, 100px) 0; }
  .stats-grid { gap: 0; }
  .stat { padding: 28px 4px 24px; }
  .stat .meta {
    font-size: 10px;
    margin-bottom: 18px;
    letter-spacing: 0.28em;
  }
  .stat .figure { font-size: 2.6rem; }
  .stat .desc { font-size: 0.82rem; line-height: 1.5; }

  /* Pillars */
  .pillars { padding: clamp(60px, 11vw, 100px) 0; }
  .pillars-head { margin-bottom: 50px; }
  .pillar { padding: 32px 24px; }
  .pillar .pillar-ico { width: 44px; height: 44px; margin-bottom: 20px; }
  .pillar h3 { font-size: 1rem; letter-spacing: 0.16em; }
  .pillar p { font-size: 0.86rem; margin-top: 10px; }

  /* Capabilities */
  .caps { padding: clamp(70px, 12vw, 120px) 0; }
  .caps-head { margin-bottom: 50px; }
  .cap-block { padding: 36px 0; gap: 24px; }
  .cap-block .cap-num {
    font-size: 9px;
    letter-spacing: 0.28em;
    margin-bottom: 14px;
  }
  .cap-content h3 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 16px; }
  .cap-content p { font-size: 0.95rem; line-height: 1.65; }
  .cap-link {
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  /* Sectors */
  .sectors { padding: clamp(60px, 11vw, 100px) 0; }
  .sectors-head { margin-bottom: 40px; }
  .sectors-grid { gap: 14px; }
  .sector-card .sector-content { padding: 22px 18px 20px; }
  .sector-card .sector-name { font-size: 1.05rem; }
  .sector-card .sector-desc { font-size: 12px; line-height: 1.5; }
  .sector-card .sector-badge { width: 40px; height: 40px; top: 14px; right: 14px; }
  .sector-card .sector-badge svg { width: 20px; height: 20px; }

  /* Certifications */
  .certs { padding: clamp(70px, 12vw, 110px) 0; }
  .certs-head { margin-bottom: 50px; }
  .cert-group { margin-bottom: 50px; }
  .cert-group-head { margin-bottom: 28px; }
  .cert-group-head h4 { font-size: 11px; letter-spacing: 0.32em; }
  .cert-medal { padding: 22px 12px 18px; min-height: 200px; }
  .cert-medal .cert-logo { width: 88px; height: 88px; margin-bottom: 16px; }
  .cert-medal .label { font-size: 11px; }
  .cert-medal .code { font-size: 9px; padding-top: 6px; }
  .cert-min-block { padding: 28px 24px 24px; }
  .cert-min-block .ministerio { font-size: 9px; }
  .cert-min-block h5 { font-size: 1.1rem; line-height: 1.3; margin-bottom: 20px; }
  .cert-min-block ul li { padding: 12px 0; font-size: 12px; }

  /* CTA */
  .cta { padding: clamp(70px, 12vw, 110px) 0; }
  .cta-inner { text-align: center; }
  .cta-inner .eyebrow { font-size: 10px; }
  .cta-inner h2 { font-size: 2rem; line-height: 1.2; }
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 36px;
  }

  /* Footer */
  footer { padding: 60px 0 24px; }
  .footer-brand .logo-wrap img,
  .footer-brand .logo-wrap svg { width: 44px; }
  .footer-brand .logo-wrap .name { font-size: 17px; }
  .footer-brand p { font-size: 13px; }
  .footer-col h4 { font-size: 10px; letter-spacing: 0.28em; }
  .footer-col ul li { padding: 6px 0; }
  .footer-col ul li a { font-size: 13px; }
  .footer-contact .contact-val { font-size: 13px; line-height: 1.65; }
  .footer-contact .contact-val .sublabel { font-size: 10.5px; }
  .footer-contact .contact-link { font-size: 13px; }
  .footer-bottom { padding-top: 28px; font-size: 10px; }

  /* Subpages */
  .sub-hero { padding: 80px 0 60px; }
  .sub-hero h1 { font-size: 2.4rem; line-height: 1.15; }
  .sub-hero .lead { font-size: 1.05rem; line-height: 1.6; }
  .sub-hero-meta { font-size: 9px; letter-spacing: 0.28em; }
  .sub-section { padding: 60px 0; }
  .sub-section h2 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 20px; }
  .sub-section p, .sub-section li { font-size: 0.96rem; line-height: 1.65; }
  .sub-cards { grid-template-columns: 1fr !important; gap: 1px; }
  .sub-cards .sub-card { padding: 28px 24px; }
  .sub-cards .sub-card h3 { font-size: 1.05rem; }
  .sub-pull { padding: 36px 24px; margin: 50px 0; }
  .sub-pull blockquote { font-size: 1.25rem; line-height: 1.35; }
  .sub-back { padding: 16px 22px; font-size: 10px; }

  /* Hide / shrink decorative SVG details */
  .map-svg text[font-size="8.5"],
  .map-svg text[font-size="7"] { font-size: 9px !important; }
}

/* ---------- ≤600px: Standard mobile portrait ---------- */
@media (max-width: 600px) {
  .container { padding: 0 20px; }

  /* Notice bar simpler */
  .notice { font-size: 9.5px; letter-spacing: 0.18em; }

  /* Hero h1 needs to fit */
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero h1 .line { padding: 0.16em 0 0.22em; margin: -0.16em 0 -0.22em; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .hero-strip { font-size: 8.5px; letter-spacing: 0.16em; }

  /* Single-column grids */
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-bottom: 1px solid var(--line); padding: 22px 0; }
  .stat:last-child { border-bottom: none; }
  .stat .meta { margin-bottom: 12px; }
  .stat .figure { font-size: 2.8rem; }

  .pillars-grid { grid-template-columns: 1fr; gap: 14px; }
  .pillar { padding: 28px 24px; min-height: auto; }

  .sectors-grid { grid-template-columns: 1fr; gap: 16px; }
  .sector-card .sector-name { font-size: 1.15rem; }
  .sector-card .sector-desc { font-size: 13px; }

  .cert-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cert-medal { padding: 18px 8px 14px; min-height: 180px; }
  .cert-medal .cert-logo { width: 72px; height: 72px; margin-bottom: 12px; }
  .cert-medal .label { font-size: 10.5px; line-height: 1.35; }
  .cert-medal .code { font-size: 8.5px; letter-spacing: 0.16em; padding-top: 4px; }
  .cert-medal-text .aenor-mark .aenor-brand { font-size: 15px; }
  .cert-medal-text .aenor-mark .aenor-iso { font-size: 8.5px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }

  /* About */
  .about-grid { gap: 24px; }
  .about-visual { padding: 12px; }
  .about-text h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .about-text .lead { font-size: 1.02rem; }
  .about-text p { font-size: 0.95rem; }
  .about-quote { margin-top: 50px; padding: 0 8px; }
  .about-quote blockquote { font-size: 1.15rem; }

  /* Capabilities */
  .caps-head h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .cap-content h3 { font-size: 1.5rem; }

  /* Sectors heading */
  .sectors-head h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }

  /* Certifications heading */
  .certs-head h2 { font-size: clamp(2rem, 8vw, 2.8rem); }

  /* CTA */
  .cta-inner h2 { font-size: 1.75rem; }
  .cta-actions { gap: 12px; }

  /* Buttons full-width and easy to tap */
  .btn {
    justify-content: center;
    min-height: 50px;
    padding: 14px 22px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  /* Sub-hero */
  .sub-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .sub-pull blockquote { font-size: 1.15rem; }

  /* Map for very narrow screens */
  .hero-map .map-svg { font-size: 10px; }

  /* Mobile drawer refinements */
  .nav-drawer { padding: 24px 22px 28px; }
  .nav-drawer ul li a {
    padding: 18px 0;
    font-size: 1.35rem;
    min-height: 44px;
  }
  .nav-drawer .nav-cta {
    margin-top: 28px;
    align-self: stretch;
    text-align: center;
    justify-content: center;
    padding: 16px 24px;
    min-height: 50px;
  }
  .nav-drawer .lang-toggle { margin-top: 20px; }
}

/* ---------- ≤380px: Small phones (iPhone SE) ---------- */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .nav-brand .logo-mark { width: 38px; }
  .hero h1 { font-size: clamp(2rem, 11vw, 2.6rem); }
  .stat .figure { font-size: 2.4rem; }
  .cert-medal { min-height: 160px; padding: 20px 10px; }
  .cert-medal .cert-logo { width: 70px; height: 70px; }
  .pillars-head h2,
  .caps-head h2,
  .sectors-head h2,
  .certs-head h2 { font-size: 1.75rem; }
  .about-text h2 { font-size: 1.8rem; }
  .about-quote blockquote { font-size: 1.05rem; }
}

/* ==========================================================================
   ACCESSIBILITY  &  TAP TARGETS  (apply at all sizes on touch devices)
========================================================================== */
@media (hover: none) and (pointer: coarse) {
  /* All interactive elements meet 44×44 minimum tap target */
  a, button, .btn, .nav-cta, .nav-toggle, .lang-toggle, .lang-item {
    min-height: 44px;
  }
  /* Disable hover transforms that don't apply on touch */
  .sector-card:hover .sector-photo img,
  .cap-art:hover .cap-photo img,
  .about-visual:hover .about-card-img img {
    transform: none;
  }
  /* Footer link tap area */
  .footer-col ul li a {
    display: inline-block;
    padding: 8px 0;
  }
}

/* ==========================================================================
   PRINT  (in case anyone prints a page)
========================================================================== */
@media print {
  .nav, footer, .contact-modal, .hero-strip, .scroll-cue { display: none; }
  body { background: white; color: black; }
  .hero, .about, .stats, .pillars, .caps, .sectors, .certs, .cta {
    padding: 24px 0;
    page-break-inside: avoid;
  }
}

/* =====================================================================
   FOOTER CONTACT BLOCK
====================================================================== */
.footer-contact {
  color: var(--navy);
}
.footer-contact .contact-line {
  margin-bottom: 24px;
}
.footer-contact .contact-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}
.footer-contact .contact-val {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--navy);
  font-weight: 400;
}
.footer-contact .contact-val .sublabel {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  font-weight: 400;
  margin-top: 4px;
  font-style: italic;
}
.footer-contact .contact-link {
  display: inline-block;
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  font-weight: 500;
}
.footer-contact .contact-link:hover {
  color: var(--gold);
}
.footer-contact .btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: gap 0.4s var(--ease), color 0.3s var(--ease);
}
.footer-contact .btn-contact:hover {
  gap: 18px;
  color: var(--gold);
}
.footer-contact .btn-contact .arrow {
  width: 18px;
  height: 9px;
}

/* =====================================================================
   CONTACT MODAL
====================================================================== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.contact-modal.open {
  display: flex;
  animation: modalFade 0.35s var(--ease-out);
}
@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 27, 50, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line-gold);
  box-shadow: 0 40px 80px rgba(3, 27, 50, 0.35);
  padding: 48px 56px 40px;
  animation: modalPanel 0.5s var(--ease-out);
}
@keyframes modalPanel {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.contact-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 2;
}
.contact-modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.contact-modal-head {
  margin-bottom: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.contact-modal-head .eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold-3);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contact-modal-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.contact-modal-head p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.contact-form .form-field {
  margin-bottom: 18px;
  position: relative;
}
.contact-form .form-row .form-field {
  margin-bottom: 0;
}
.contact-form label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-form label .optional {
  color: var(--ink-soft);
  margin-left: 6px;
  font-weight: 400;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--navy);
  border-radius: 0;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper);
}
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'Montserrat', sans-serif;
}
.contact-form .select-wrap {
  position: relative;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 40px;
}
.contact-form .select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  color: var(--gold-3);
  pointer-events: none;
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form select:invalid:not(:placeholder-shown) {
  border-color: rgba(180, 60, 40, 0.4);
}
.contact-form .form-foot {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.contact-form .form-note {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 40ch;
  margin: 0;
}
.contact-form button[type="submit"] {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}
.contact-form .form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-top: 0;
  padding: 56px 30px;
  background: rgba(201, 160, 75, 0.08);
  border: 1px solid var(--line-gold);
  color: var(--gold);
}
.contact-form .form-success[hidden] { display: none; }
.contact-form .form-success .success-check { color: var(--gold); }
.contact-form .form-success strong {
  display: block;
  color: var(--navy);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0;
  margin-bottom: 0;
  line-height: 1.15;
}
.contact-form .form-success p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-dim);
  line-height: 1.55;
  max-width: 420px;
}
/* When form is submitted, hide fields so only the success block is visible */
.contact-form.sent .form-row,
.contact-form.sent .form-field,
.contact-form.sent .form-foot { display: none; }
body.modal-open { overflow: hidden; }

@media (max-width: 700px) {
  .contact-modal { padding: 0; align-items: stretch; }
  .contact-modal-panel {
    padding: 32px 22px 24px;
    max-height: 100vh;
    /* iOS Safari: use dvh (dynamic viewport height) so the panel resizes when keyboard opens */
    max-height: 100dvh;
    width: 100%;
    border: none;
    /* Full-screen on phones for max usable area when typing */
    margin: 0;
  }
  .contact-modal-backdrop {
    /* keep backdrop in case user rotates */
    display: none;
  }
  .contact-modal-head { margin-bottom: 24px; padding-bottom: 18px; }
  .contact-modal-head h2 { font-size: 1.4rem; line-height: 1.25; }
  .contact-modal-head p { font-size: 13px; line-height: 1.55; }
  .contact-modal-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;   /* tap-friendly */
  }
  .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form .form-row .form-field { margin-bottom: 16px; }
  .contact-form label { font-size: 9.5px; letter-spacing: 0.2em; }
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 13px 14px;
    font-size: 16px;  /* 16px prevents iOS Safari from zooming in on focus */
    min-height: 48px;
  }
  .contact-form textarea { min-height: 90px; }
  .contact-form .form-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 24px;
    padding-top: 20px;
  }
  .contact-form .form-note { font-size: 10.5px; max-width: none; text-align: center; }
  .contact-form button[type="submit"] { width: 100%; justify-content: center; min-height: 50px; }
  .contact-form .form-success { padding: 18px 20px; }
}

/* Footer responsive (kept for safety, also handled above) */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr !important; }
}
