/* ============================================
   3GE — Sistema de diseño editorial
   ============================================ */

@font-face {
  font-family: 'Bank Gothic';
  src: url('../fonts/BankGothicMdBT.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aptos Display';
  src: url('../fonts/Aptos-Display.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aptos Display';
  src: url('../fonts/Aptos-Display-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aptos Display';
  src: url('../fonts/Aptos-Display-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0A0E1A;
  --blue-900: #003866;
  --blue-700: #005A9C;
  --blue-600: #0070C0;
  --blue-50: #E8F1FA;
  --paper: #FAFAFA;
  --white: #FFFFFF;
  --muted: #5B6478;
  --border: #E5EAF2;

  --radius-sm: 4px;
  --radius-md: 8px;

  --shadow-sm: 0 1px 2px rgba(11,42,94,0.06);
  --shadow-md: 0 8px 24px rgba(11,42,94,0.08);
  --shadow-lg: 0 24px 48px rgba(11,42,94,0.12);

  --container: 1200px;
  --container-narrow: 760px;

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

  --font-display: 'Bank Gothic', 'Aptos Display', sans-serif;
  --font-serif: 'Aptos Display', sans-serif;
  --font-sans: 'Aptos Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Aptos Display', sans-serif;
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================
   Tipografía
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
h1, h2 {
  line-height: 1.05;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }

p { max-width: 65ch; }
p + p { margin-top: 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1.25rem;
}
.eyebrow.centered { display: block; text-align: center; }
.centered { text-align: center; }
.centered p { margin-left: auto; margin-right: auto; }

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

.section {
  padding: clamp(64px, 10vw, 128px) 0;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--white);
}
.section-dark .eyebrow { color: var(--blue-600); }

.section-blue {
  background: var(--blue-900);
  color: var(--white);
}
.section-blue h1, .section-blue h2, .section-blue h3, .section-blue h4 {
  color: var(--white);
}
.section-blue .eyebrow {
  color: var(--white);
  opacity: 0.7;
}

.section-light-blue {
  background: var(--blue-50);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}
.section:not(.section-dark):not(.section-blue) .btn-ghost {
  color: var(--ink);
  border-color: var(--border);
}
.section:not(.section-dark):not(.section-blue) .btn-ghost:hover {
  background: var(--blue-50);
  border-color: var(--blue-600);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 40px;
  transition: opacity 0.3s var(--ease);
}
.nav-logo .logo-light { display: block; }
.nav-logo .logo-dark { display: none; }
.nav.scrolled .nav-logo .logo-light { display: none; }
.nav.scrolled .nav-logo .logo-dark { display: block; }
.nav.nav-light .nav-logo .logo-light { display: none; }
.nav.nav-light .nav-logo .logo-dark { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav.scrolled .nav-links a,
.nav.nav-light .nav-links a { color: var(--ink); }
.nav-links .nav-cta {
  padding: 10px 20px;
  background: var(--blue-600);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--blue-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled .nav-toggle span,
.nav.nav-light .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 80vw);
  background: var(--ink);
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nav-mobile.open { transform: none; }
.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--white);
  display: block;
  padding: 8px 0;
}

/* ============================================
   Hero (home)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11,42,94,0.85) 0%, rgba(10,14,26,0.92) 60%, rgba(10,14,26,0.95) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 24px 80px;
}
.hero-title {
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1.02;
  color: var(--white);
  max-width: 18ch;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.hero-title em {
  font-style: normal;
  color: var(--blue-50);
  opacity: 0.85;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-meta {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   Page hero (subpáginas)
   ============================================ */
.page-hero {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: end;
  padding: 160px 0 80px;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.05);
  z-index: 0;
}
video.page-hero-bg {
  object-position: center top;
}
.page-hero-video .page-hero-bg {
  object-position: center 22%;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.4) 0%, rgba(10,14,26,0.85) 100%);
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 4rem);
  max-width: 22ch;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.page-hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.125rem;
  max-width: 600px;
}
.page-hero-light {
  background: var(--paper);
  color: var(--ink);
  min-height: 44vh;
}
.page-hero-light h1 { color: var(--ink); }
.page-hero-light .page-hero-sub { color: var(--muted); }

/* ============================================
   Clients strip
   ============================================ */
.clients {
  padding: 64px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin-top: 32px;
}
.clients-grid img {
  height: 44px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.clients-grid img:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 {
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.about-text p { color: var(--muted); }
.stats {
  display: flex;
  gap: 64px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--blue-600);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
.about-media {
  position: relative;
}
.about-media img {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-media::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 60%;
  height: 60%;
  border: 1px solid var(--blue-600);
  border-radius: var(--radius-sm);
  z-index: -1;
}

/* ============================================
   Team
   ============================================ */
.team h2 {
  margin: 0 auto 64px;
  max-width: 22ch;
  text-align: center;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}
.team-card {
  display: flex;
  flex-direction: column;
}
.team-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  filter: grayscale(0.15);
  transition: filter 0.4s var(--ease);
}
.team-card:hover img { filter: grayscale(0); }
.team-card h3 {
  color: var(--white);
  margin-bottom: 4px;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 16px;
}
.team-card p:not(.team-role) {
  color: rgba(250,250,250,0.75);
  font-size: 15px;
}

/* ============================================
   Solutions grid (home)
   ============================================ */
.solutions h2 {
  margin: 0 auto 64px;
  max-width: 22ch;
  text-align: center;
}
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.solution-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-600);
}
.solution-card img {
  width: 40%;
  object-fit: cover;
  flex-shrink: 0;
}
.solution-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.solution-body h3 {
  margin-bottom: 12px;
}
.solution-body p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}
.link-arrow {
  display: inline-block;
  margin-top: 20px;
  color: var(--blue-600);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease);
}
.solution-card:hover .link-arrow {
  transform: translateX(4px);
}

/* ============================================
   Approach (diferenciadores)
   ============================================ */
.approach .container { text-align: center; }
.approach .eyebrow { color: var(--blue-50); }
.approach > .container > .eyebrow { margin-bottom: 64px; }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: left;
  max-width: 1080px;
  margin: 0 auto;
}
.approach-item {
  padding: 40px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.approach-item:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
}
.approach-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--blue-50);
  opacity: 0.6;
  margin-bottom: 24px;
}
.approach-item h3 {
  color: var(--white);
  margin-bottom: 12px;
}
.approach-item p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
}

/* ============================================
   CTA final
   ============================================ */
.cta-final {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--border);
  background: var(--paper);
}
.cta-final .container-narrow { text-align: center; }
.cta-final h2 {
  margin-bottom: 1.5rem;
}
.cta-final p {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0 auto 2.5rem;
  max-width: 50ch;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--ink);
  color: rgba(250,250,250,0.7);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  padding: 80px 24px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-logo {
  height: 40px;
  margin-bottom: 24px;
}
.footer-grid > div p { color: rgba(250,250,250,0.65); }
.footer-grid > div p + p { margin-top: 8px; }
.footer a {
  color: rgba(250,250,250,0.7);
  transition: color 0.2s var(--ease);
}
.footer a:hover { color: var(--white); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  font-size: 13px;
  color: rgba(250,250,250,0.5);
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* ============================================
   Product blocks (soluciones.html)
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.product-grid.reverse > .product-content { order: 2; }
.product-grid.reverse > .product-media { order: 1; }
.product-content .lead {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 1.25rem 0 2rem;
  max-width: 50ch;
  line-height: 1.5;
}
.section-light-blue .product-content .lead,
.section-light-blue .product-content p { color: var(--ink); }
.section-light-blue .product-content .lead { color: #2C3849; }
.product-content h3 {
  margin: 2.25rem 0 1rem;
  font-size: 1.125rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.product-content ul.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 0;
}
.product-content ul.two-col li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.product-content ul.two-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--blue-600);
}
.section-light-blue .product-content ul.two-col li { color: var(--ink); }

.tech-block {
  background: var(--ink);
  color: var(--white);
  padding: 32px;
  border-radius: var(--radius-sm);
  margin-top: 2.5rem;
  border: 1px solid rgba(37,99,235,0.2);
}
.tech-block .eyebrow { color: var(--blue-600); margin-bottom: 1rem; }
.tech-block ul {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
}
.tech-block li {
  position: relative;
  padding-left: 18px;
  color: rgba(255,255,255,0.85);
}
.tech-block li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue-600);
}

.product-media {
  position: relative;
}
.product-media > img:first-child,
.product-media > video:first-child {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.product-media-secondary {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 50% !important;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
}
.section-dark .product-media-secondary,
.section-blue .product-media-secondary { border-color: var(--ink); }
.section-light-blue .product-media-secondary { border-color: var(--blue-50); }

.product-media.stacked > img,
.product-media.stacked > video {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.product-media.stacked > img + img,
.product-media.stacked > video + video,
.product-media.stacked > img + video,
.product-media.stacked > video + img {
  margin-top: 16px;
}

/* FAT block */
.fat-block {
  background: var(--ink);
  color: var(--white);
  padding: clamp(40px, 5vw, 64px);
  border-radius: var(--radius-sm);
  margin-top: 80px;
  border: 1px solid rgba(37,99,235,0.18);
}
.section-light-blue .fat-block { background: var(--ink); }
.fat-block > .eyebrow { color: var(--blue-600); display: block; margin-bottom: 2rem; font-size: 13px; }
.fat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.fat-item h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--blue-50);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.fat-item ul {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
}
.fat-item li {
  position: relative;
  padding-left: 14px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 4px;
}
.fat-item li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--blue-600);
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.contact-form h2 {
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.contact-form label {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  font-size: 16px;
  font-family: var(--font-sans);
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--blue-600);
  background: var(--white);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button { margin-top: 8px; width: 100%; }

.contact-info {
  padding-left: 32px;
  border-left: 1px solid var(--border);
}
.contact-info h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}
.contact-block {
  margin-bottom: 1.75rem;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.55;
}
.contact-block a { color: var(--ink); border-bottom: 1px solid var(--border); transition: border-color 0.2s var(--ease); }
.contact-block a:hover { border-color: var(--blue-600); }
.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 6px;
}
.contact-map {
  margin-top: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.contact-map iframe {
  display: block;
  filter: grayscale(0.4) contrast(0.95);
  transition: filter 0.4s var(--ease);
}
.contact-map:hover iframe { filter: grayscale(0); }

/* ============================================
   Animations
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.fade-up.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .about-grid,
  .product-grid,
  .product-grid.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .product-grid.reverse > .product-content,
  .product-grid.reverse > .product-media { order: initial; }
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .team-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .solution-card { flex-direction: column; }
  .solution-card img { width: 100%; aspect-ratio: 16/9; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 64px 24px;
  }
  .contact-info {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 32px;
  }
  .product-media-secondary {
    position: static;
    width: 80% !important;
    margin: 16px 0 0 auto;
  }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  .clients-grid { gap: 32px; }
  .clients-grid img { height: 32px; }
  .stats { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-content ul.two-col {
    grid-template-columns: 1fr;
  }
  .hero-meta { display: none; }
  .hero { min-height: 90vh; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 20px; }
  .hero-content { padding: 120px 0 60px; }
  .nav-mobile { width: 100%; }
}

/* ============================================================
   Gallery (iTEC) — masonry grid editorial con hover
   ============================================================ */
.gallery-wrap { margin-top: 80px; }
.gallery-wrap .eyebrow { color: var(--blue-600); }
.gallery-title {
  margin: 0.5rem 0 2.5rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 12px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  border-radius: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 400ms ease;
  filter: saturate(0.95);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(0, 112, 192, 0) 50%,
              rgba(0, 56, 102, 0.55) 100%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}
.gallery-item:hover::after { opacity: 1; }

.gallery-item.span-col-2 { grid-column: span 2; }
.gallery-item.span-row-2 { grid-row: span 2; }

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 8px;
  }
  .gallery-item.span-col-2 { grid-column: span 2; }
  .gallery-item.span-row-2 { grid-row: span 1; }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
}
