/* ===========================================================
   GRUPO ICIS · SHARED DESIGN SYSTEM
   Brandbook v1.0 · Marzo 2026
   Shared across sub-pages (Servicios, Industrias, Experiencia)
   =========================================================== */

html { font-size: 100%; }

:root {
  color-scheme: light;
  /* Primary Palette */
  --primary-dark: #092235;
  --primary-green: #1f6f5c;

  /* Secondary */
  --secondary-light: #e6eaed;
  --secondary-gray: #F2F2F2;
  --secondary-black: #0F0F0F;

  /* Extended */
  --ext-1: #0d3350;
  --ext-2: #1a4a6b;
  --ext-3: #2a8f75;
  --ext-4: #34a88b;
  --ext-5: #e8f5f0;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --border: #e5e7eb;
  --muted: #6b7280;
  --text: #0f1824;

  /* Typography */
  --font-display: 'Fraunces', 'Finzer', Georgia, serif;
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;

  /* Spacing scale (8px base) */
    /* Fase 3 · Sistema de movimiento. */
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 340ms;
  --dur-reveal: 420ms;
  --dur-cinematic: 700ms;
  --ease-out: cubic-bezier(.4, 0, .2, 1);
  --ease-soft: cubic-bezier(.2, .6, .2, 1);
  --ease-press: cubic-bezier(.2, .9, .25, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Max width */
  --max-width: 1280px;
  --gutter: 32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-green);
  margin-bottom: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--primary-green);
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; color: var(--primary-dark); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.875rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.01em; }
h4, .card-h { font-size: 1.25rem; font-weight: 500; }
h5 { font-size: 0.875rem; font-weight: 600; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.9); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all var(--dur-slow) var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary-dark); color: var(--white); }
.btn-primary:hover { background: var(--ext-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-ghost:hover { background: var(--primary-dark); color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: 0.8125rem; }
.btn .arrow { transition: transform var(--dur-slow); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ SLOGAN BAR ============ */
.slogan-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.92);
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 101;
  overflow: hidden;
}
.slogan-bar::before, .slogan-bar::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px;
}
.slogan-bar::before { left: 0; background: linear-gradient(90deg, var(--primary-dark) 30%, transparent); z-index: 2; }
.slogan-bar::after { right: 0; background: linear-gradient(270deg, var(--primary-dark) 30%, transparent); z-index: 2; }
.slogan-bar .container { display: flex; justify-content: center; align-items: center; gap: 16px; position: relative; }
.slogan-bar .dot {
  width: 6px; height: 6px;
  background: var(--ext-4);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52,168,139,.7);
  animation: pulse 2.4s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,168,139,.6); }
  70% { box-shadow: 0 0 0 10px rgba(52,168,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,168,139,0); }
}
.slogan-bar .slogan { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,.95); }
.slogan-bar .slogan em { font-style: normal; color: var(--ext-4); font-weight: 700; }

/* ============ HEADER / NAV ============ */
.header {
  position: sticky;
  top: 39px;
  z-index: 100;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--border);
}
/* El desenfoque de la cabecera se declara más abajo, y solo para escritorio:
   en móvil convertiría a la cabecera en bloque contenedor del panel del menú,
   que es hijo suyo y debe medirse contra la pantalla. */
.header .container { display: flex; align-items: center; gap: 56px; padding-top: 22px; padding-bottom: 22px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary-dark); }
.logo-img { display: block; height: 38px; width: auto; }
.logo-footer .logo-img { height: 42px; }
.logo-mark {
  width: 40px; height: 40px;
  background: var(--primary-dark);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.logo-mark::before {
  content: ''; position: absolute; inset: 8px;
  background: linear-gradient(135deg, var(--ext-4) 0%, var(--primary-green) 100%);
  border-radius: 1px;
}
.logo-mark::after {
  content: 'I';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  z-index: 1;
}
.logo-text strong { display: block; font-size: 1.125rem; letter-spacing: 0.04em; font-weight: 600; }
.logo-text small { display: block; font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }

nav ul { list-style: none; display: flex; gap: 4px; align-items: center; }
nav > ul > li { position: relative; }
nav > ul > li > a, nav > ul > li > .nav-label {
  font-size: 0.875rem;
  color: var(--primary-dark);
  font-weight: 500;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 2px;
  transition: background var(--dur-base);
}
nav > ul > li > a:hover, nav > ul > li > .nav-label:hover { background: var(--off-white); color: var(--primary-green); }
nav > ul > li.has-dropdown > .nav-label::after {
  content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--dur-base);
}
nav > ul > li.has-dropdown:hover > .nav-label::after { transform: rotate(225deg); }

/* Dropdown */
.dropdown {
  min-width: 360px;
  max-width: min(360px, calc(100vw - 48px));
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 20px 48px rgba(9, 34, 53, 0.12);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur-base) var(--ease-out);
  z-index: 10;
}
nav > ul > li.has-dropdown:hover > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: 3px;
  transition: background var(--dur-base);
}
.dropdown a:hover { background: var(--off-white); }
.dropdown a strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 2px; }
.dropdown a small { display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.5; }

/* ============ BREADCRUMB ============ */
.breadcrumb {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.breadcrumb .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); transition: color var(--dur-base); }
.breadcrumb a:hover { color: var(--primary-green); }
.breadcrumb .sep { color: rgba(107,114,128,.5); }
.breadcrumb .current { color: var(--primary-dark); font-weight: 500; }

/* ============ PAGE HERO ============ */
.page-hero {
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--space-7) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 80% 20%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, black 30%, transparent 70%);
}
.page-hero::after {
  content: ''; position: absolute; right: -120px; top: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,168,139,0.12) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; max-width: 920px; }
.page-hero .eyebrow { color: var(--ext-4); }
.page-hero .eyebrow::before { background: var(--ext-4); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: var(--space-3);
}
.page-hero h1 em { font-style: italic; color: var(--ext-4); font-weight: 400; }
.page-hero .page-lede {
  font-size: 1.125rem;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
  max-width: 720px;
  font-weight: 300;
}

/* ============ SECTION SHARED ============ */
section { padding: var(--space-7) 0; }
section.tight { padding: var(--space-6) 0; }

.section-intro { margin-bottom: var(--space-6); position: relative; }
.section-intro-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.section-intro-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-intro-head h2 em { font-style: italic; color: var(--primary-green); font-weight: 400; }
.head-accent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding-top: 6px;
}
.head-accent .bar { width: 48px; height: 2px; background: var(--primary-green); display: block; }
.head-accent span:not(.bar) {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-intro-body {
  max-width: 720px;
  padding-left: 32px;
  position: relative;
}
.section-intro-body::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-dark) 18%, var(--primary-green) 18%, var(--primary-green) 100%);
}
.section-intro-body p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: var(--space-3);
}
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-green);
  transition: gap var(--dur-base);
}
.inline-link:hover { gap: 14px; }
.inline-link .arrow { transition: transform var(--dur-base); }
.inline-link:hover .arrow { transform: translateX(4px); }

/* ============ CONTENT PATTERNS ============ */
.lead-p {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 780px;
  margin-bottom: var(--space-4);
  font-weight: 400;
}
.body-p {
  font-size: 1.0312rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 780px;
  margin-bottom: var(--space-3);
}

/* Feature list (Alcance) */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0;
  list-style: none;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 2px solid var(--primary-green);
  border-radius: 2px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
  transition: transform var(--dur-base), box-shadow var(--dur-base);
}
.feature-list li:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(9,34,53,.06);
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--primary-green);
  border-radius: 50%;
  margin-top: 9px;
}

/* Capability grid (services hub) */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.cap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: var(--space-4);
  transition: transform var(--dur-slow), box-shadow var(--dur-slow), border-color var(--dur-slow);
  text-decoration: none;
  color: inherit;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(9,34,53,.08);
  border-color: var(--primary-green);
}
.cap-card .num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ext-4);
  font-weight: 300;
  margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: 12px;
}
.cap-card .num::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.cap-card h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}
.cap-card p {
  font-size: 0.9062rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  flex: 1;
}
.cap-card .link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: gap var(--dur-base);
}
.cap-card:hover .link { gap: 14px; }

/* Photo placeholder (editorial image block) */
.photo-placeholder {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(45deg, rgba(9,34,53,.03) 0 12px, transparent 12px 24px),
    var(--secondary-gray);
  border: 1.5px dashed rgba(9,34,53,.18);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}
.photo-placeholder::before {
  content: '';
  width: 48px; height: 48px;
  background: var(--white);
  border-radius: 50%;
  border: 1.5px solid rgba(9,34,53,.18);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(9,34,53,.3) 0 3px, transparent 3px),
    linear-gradient(transparent 60%, rgba(9,34,53,.3) 60% 62%, transparent 62%);
  background-size: 100% 100%;
}
.photo-placeholder small {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.photo-placeholder .caption {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  font-size: 0.75rem;
  color: rgba(9,34,53,.55);
  background: rgba(255,255,255,.85);
  padding: 8px 12px;
  border-radius: 2px;
  text-align: left;
  backdrop-filter: blur(4px);
}

/* ------------------------------------------------------------------ */
/* Photo figure : real photography, editorial frame treatment          */
/* ------------------------------------------------------------------ */
.photo-figure {
  position: relative;
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  background: var(--primary-dark);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(9,34,53,.05), 0 18px 40px -20px rgba(9,34,53,.28);
  isolation: isolate;
}
.photo-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform var(--dur-cinematic) var(--ease-soft);
  will-change: transform;
}
.photo-figure.is-portrait img { aspect-ratio: 4 / 5; }
.photo-figure.is-square   img { aspect-ratio: 1 / 1; }
.photo-figure.is-43       img { aspect-ratio: 4 / 3; }
.photo-figure.is-wide     img { aspect-ratio: 21 / 9; }
.photo-figure:hover img { transform: scale(1.035); }

/* unifying brand grade : barely-there cool wash so photos sit in the palette */
.photo-figure::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(160deg, rgba(31,111,92,.05) 0%, rgba(9,34,53,.12) 100%);
  pointer-events: none;
}
/* green accent edge : echoes the .content-card left-rule motif */
.photo-figure::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 52px;
  background: var(--primary-green);
  z-index: 3;
}
.photo-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  font-size: 0.7812rem;
  line-height: 1.45;
  color: rgba(255,255,255,.82);
  background: linear-gradient(180deg, transparent 0%, rgba(9,34,53,.55) 45%, rgba(9,34,53,.92) 100%);
  padding: 40px 16px 14px;
}
.photo-figure figcaption strong {
  display: block;
  font-weight: 600;
  color: #fff;
  letter-spacing: .005em;
  margin-bottom: 1px;
}
/* spacing helper when a figure sits inside a prose column */
.photo-figure.inflow { margin: var(--space-4) 0; }

/* Project reference card */
.project-ref {
  background: linear-gradient(135deg, var(--ext-1) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: var(--space-5);
  border-radius: 3px;
  margin: var(--space-5) 0;
  position: relative;
  overflow: hidden;
}
.project-ref::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(52,168,139,0.14) 0%, transparent 70%);
}
.project-ref .ref-label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ext-4); margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
}
.project-ref .ref-label::before { content: ''; width: 24px; height: 1px; background: var(--ext-4); }
.project-ref h3 { color: var(--white); font-size: 1.625rem; margin-bottom: var(--space-2); line-height: 1.2; }
.project-ref p { color: rgba(255,255,255,.78); font-size: 0.9688rem; line-height: 1.6; max-width: 720px; }
.project-ref .ref-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; color: var(--ext-4); text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: var(--space-3); transition: gap var(--dur-base);
}
.project-ref .ref-link:hover { gap: 16px; }

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,168,139,0.12) 0%, transparent 60%);
}
.cta-band .container { position: relative; z-index: 2; display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-5); align-items: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
.cta-band h2 em { font-style: italic; color: var(--ext-4); font-weight: 400; }
.cta-band p { color: rgba(255,255,255,.72); font-size: 1rem; margin-top: 16px; max-width: 620px; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band .btn-primary { background: var(--ext-4); color: var(--primary-dark); }
.cta-band .btn-primary:hover { background: var(--ext-3); color: var(--white); }
.cta-band .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.3); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--primary-dark); }

/* ============ RELATED CARDS ============ */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.related-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: var(--space-4);
  border-radius: 2px;
  transition: all var(--dur-slow);
  display: block;
  color: inherit;
  text-decoration: none;
}
.related-card:hover { background: var(--white); border-color: var(--primary-green); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(9,34,53,.08); }
.related-card .tag {
  display: inline-block;
  font-size: 0.6562rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary-green); margin-bottom: 12px;
}
.related-card h4, .related-card .card-h { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 10px; line-height: 1.2; color: var(--primary-dark); }
.related-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.related-card .arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary-green);
}
.related-card:hover .arrow-link { gap: 14px; }

/* ============ FOOTER ============ */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.7);
  padding: var(--space-6) 0 var(--space-4);
  position: relative;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ext-4) 35%, var(--ext-4) 65%, transparent 100%);
  opacity: 0.5;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-col.brand p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,.55); margin-top: var(--space-3); max-width: 340px; }
.footer-col .footer-h {
  font-size: 0.7188rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--white); margin-bottom: var(--space-3); position: relative; padding-bottom: 10px;
}
.footer-col .footer-h::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 1px; background: var(--ext-4); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,.7); transition: color var(--dur-base); }
.footer-col ul a:hover { color: var(--ext-4); }
.footer-contact-item { margin-bottom: var(--space-2); font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,.7); }
.footer-contact-item span { display: block; font-size: 0.6562rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.footer-contact-item a { color: rgba(255,255,255,.85); }
.footer-contact-item a:hover { color: var(--ext-4); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-3); flex-wrap: wrap; gap: var(--space-2); }
.footer-bottom small { font-size: 0.75rem; color: rgba(255,255,255,.4); }
.footer-legal { display: flex; align-items: center; gap: 14px; }
.footer-legal a { font-size: 0.75rem; color: rgba(255,255,255,.45); transition: color var(--dur-base); }
.footer-legal a:hover { color: var(--ext-4); }
.footer-legal .divider { width: 1px; height: 10px; background: rgba(255,255,255,.15); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: rgba(255,255,255,.5); transition: all var(--dur-base);
}
.socials a:hover { border-color: var(--ext-4); color: var(--ext-4); transform: translateY(-2px); }
.socials svg { width: 14px; height: 14px; }

/* ============ CONTENT CARD (bordered wrapper for detail-page context blocks) ============ */
.content-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary-green);
  border-radius: 3px;
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
  position: relative;
}
.content-card > h2:first-child,
.content-card > h3:first-child { margin-top: 0; }
.content-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  margin: 0 0 var(--space-2);
}
.content-card h2 em { font-style: italic; color: var(--primary-green); font-weight: 400; }
.content-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.content-card p:last-child { margin-bottom: 0; }
.content-card .eyebrow {
  color: var(--primary-green);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.content-card .eyebrow::before {
  content: ''; display: inline-block; width: 22px; height: 1px;
  background: var(--primary-green); margin-right: 10px; vertical-align: middle;
}
.content-card + .content-card { margin-top: var(--space-3); }

/* ============ PAGE HERO · LEFT-ALIGNED VARIANT (hub pages) ============ */
.page-hero.hero-left .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero.hero-left h1 { max-width: 940px; }
.page-hero.hero-left .page-lede { max-width: 680px; }

/* Mobile nav trigger */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--primary-dark);
  transition: transform var(--dur-base), opacity var(--dur-base), top var(--dur-base);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .section-intro-head { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .container { grid-template-columns: 1fr; }
  .content-card { padding: var(--space-3) var(--space-4); }

  /* Mobile nav */
  /* En escritorio es el <nav> quien empuja con margin-left:auto; al salir del
     flujo en móvil, ese empuje lo toma el bloque del botón. */
  .header .nav-cta { margin-left: auto; }
  .nav-toggle { display: block; }
  /* El panel del menú ocupa exactamente la pantalla, también cerrado.
     Antes se aparcaba a la derecha con translateX(100%): un elemento
     desplazado sigue contando para el área desplazable, así que el documento
     medía el doble de ancho y TODAS las páginas tenían scroll horizontal en
     el teléfono. Ahora se oculta recortándolo —el recorte no ocupa espacio— y
     se abre como una cortina desde la derecha, con la lista entrando un
     punto después para conservar la sensación de deslizamiento. */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    /* La barra de eslogan (39 px) y la cabecera (unos 87 px) se quedan
       encima del panel para que el botón de cerrar siga accesible: el
       contenido del menú tiene que empezar por debajo de ambas. */
    padding: 134px var(--gutter) 40px;
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path var(--dur-slow) var(--ease-out),
                visibility 0s linear var(--dur-slow);
    z-index: 90;
    overflow-y: auto;
  }
  /* El panel es hijo de la cabecera y lleva z-index, así que al abrirse tapa
     el logo y el botón de cerrar. Ambos suben por encima del panel dentro del
     mismo contexto de apilamiento. */
  .header .logo,
  .header .nav-cta { position: relative; z-index: 95; }
  nav.nav-open {
    clip-path: inset(0);
    visibility: visible;
    transition: clip-path var(--dur-slow) var(--ease-out), visibility 0s;
  }
  nav > ul {
    transform: translateX(18px);
    transition: transform var(--dur-slow) var(--ease-out);
  }
  nav.nav-open > ul { transform: none; }
  @media (prefers-reduced-motion: reduce) {
    nav, nav > ul { transition: none; }
  }
  nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  nav > ul > li {
    border-bottom: 1px solid var(--border);
    width: 100%;
    position: relative;
  }
  nav > ul > li > a,
  nav > ul > li > .nav-label {
    display: block;
    width: 100%;
    padding: 18px 0;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0;
  }
  nav > ul > li.has-dropdown > .nav-label::after { margin-left: auto; float: right; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--off-white);
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height var(--dur-slow) ease, padding var(--dur-slow) ease;
  }
  nav > ul > li.has-dropdown.open > .dropdown { max-height: 800px; padding: 8px 16px 16px; }
  body.nav-open-lock { overflow: hidden; }
}
@media (max-width: 768px) {
  .nav-cta .btn-sm { padding: 10px 14px; font-size: 0.75rem; }
  .nav-cta .btn-sm .arrow { display: none; }
}
@media (max-width: 640px) {
  .cap-grid, .feature-list, .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .slogan-bar .slogan { font-size: 0.625rem; letter-spacing: 0.22em; }
  .content-card { padding: var(--space-3); }
  .logo-text small { display: none; }
  .logo-img { height: 32px; }
  .logo-footer .logo-img { height: 36px; }
}

/* ------------------------------------------------------------------ */
/* Proof band : full-bleed photographic section with overlaid statement */
/* ------------------------------------------------------------------ */
.proof-band {
  position: relative;
  padding: var(--space-7) 0;
  background: var(--primary-dark);
  overflow: hidden;
}
.proof-band .proof-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  z-index: 0;
}
.proof-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9,34,53,.80) 0%, rgba(9,34,53,.90) 100%),
    repeating-linear-gradient(45deg, transparent 0 3px, rgba(255,255,255,.03) 3px 4px);
}
.proof-band .container { position: relative; z-index: 2; }
.proof-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}
.proof-band.is-statement .proof-band-inner { grid-template-columns: 1fr; }
.proof-band .eyebrow { color: var(--ext-4); }
.proof-band h2 {
  color: var(--white);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  line-height: 1.18;
  margin-top: 12px;
  max-width: 720px;
}
.proof-band h2 em { font-style: italic; color: var(--ext-4); font-weight: 400; }
.proof-band-stats {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.proof-band-stat .num {
  font-family: var(--font-display);
  font-size: 2.625rem;
  color: var(--white);
  line-height: 1;
  font-weight: 500;
}
.proof-band-stat .num sup { color: var(--primary-green); font-size: 52%; padding-left: 2px; }
.proof-band-stat .lbl {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-top: 10px;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .proof-band-inner { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Honeypot : spam trap, visually removed but present in the DOM */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* Form confirmation toast */
.icis-toast {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 300;
  background: var(--primary-dark);
  color: #fff;
  padding: 14px 24px;
  border-radius: 3px;
  border-left: 3px solid var(--primary-green);
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 14px 38px rgba(9,34,53,.32);
  max-width: 92vw;
  opacity: 0;
  transition: opacity var(--dur-reveal) ease, transform var(--dur-reveal) ease;
}
.icis-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.icis-toast.error { border-left-color: #c0532f; }
.icis-toast strong { font-weight: 600; }

/* ============================================================================
   Bloque de estabilidad de navegación
   Evita el parpadeo al cambiar de página y bloquea la inversión automática
   del diseño por el modo oscuro del navegador.
   ============================================================================ */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .22s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
@keyframes icisPageIntro { from { opacity: .35; } to { opacity: 1; } }
body { animation: icisPageIntro .18s ease-out; }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================================
   PÁGINAS LEGALES · Aviso Legal, Privacidad, Cookies
   ============================================================================ */
.legal-body { padding: var(--space-7) 0; background: var(--white); }

.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* Índice lateral fijo, numerado por CSS para no repetir números en el marcado. */
.legal-toc {
  position: sticky;
  top: 140px;
  border-left: 2px solid var(--border);
  padding-left: var(--space-3);
}
.legal-toc .toc-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
}
.legal-toc li { counter-increment: toc; margin-bottom: 10px; }
.legal-toc li a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8438rem;
  line-height: 1.45;
  color: var(--muted);
  transition: color var(--dur-base) var(--ease-out);
}
.legal-toc li a::before {
  content: counter(toc, decimal-leading-zero) " · ";
  color: var(--primary-green);
  font-weight: 600;
}
.legal-toc li a:hover { color: var(--primary-dark); }

.legal-content { max-width: 740px; }

/* Ficha de datos del documento */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-3) 0 var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.legal-meta .meta-block { display: flex; flex-direction: column; gap: 4px; }
.legal-meta .meta-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-meta .meta-value {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text);
}

.legal-section { margin-bottom: var(--space-6); scroll-margin-top: 160px; }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3125rem, 2.2vw, 1.625rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  margin-bottom: var(--space-2);
}
.legal-section h2 .sec-num {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary-green);
}
.legal-section h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: var(--space-3) 0 8px;
}
.legal-section p {
  font-family: var(--font-sans);
  font-size: 0.9688rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.legal-section ul { list-style: none; margin: var(--space-2) 0; padding: 0; }
.legal-section ul li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-sans);
  font-size: 0.9688rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px; height: 6px;
  background: var(--primary-green);
  border-radius: 50%;
}
.legal-section a { color: var(--primary-green); text-decoration: underline; text-underline-offset: 2px; }
.legal-section a:hover { color: var(--ext-3); }
.legal-section table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-3) 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}
.legal-section th,
.legal-section td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-section th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--off-white);
}

@media (max-width: 1024px) {
  .legal-layout { grid-template-columns: 1fr; gap: var(--space-4); }
  .legal-toc { position: static; border-left: none; border-top: 2px solid var(--border); padding-left: 0; padding-top: var(--space-3); }
  .legal-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px var(--space-3); }
  .legal-content { max-width: none; }
}
@media (max-width: 640px) {
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-meta { flex-direction: column; gap: var(--space-2); }
}

/* ICIS-INTERACTION-LAYER-START */
/* ============================================================================
   CAPA DE INTERACCIÓN · Grupo ICIS
   Fase 1 · Retroalimentación al presionar
   Fase 2 · Foco visible y accesibilidad

   No modifica color, tipografía, layout ni contenido. Solo comportamiento.
   La doble pseudoclase (:active:active) eleva la especificidad para que el
   estado de presión gane siempre sobre :hover, que se mantiene activo
   simultáneamente mientras el usuario mantiene presionado.
   ============================================================================ */

:root {
  --focus-ring: 0 0 0 3px rgba(31, 111, 92, .30);
}

/* ---------------------------------------------------------------------------
   1. Sin retardo táctil y sin destello gris del navegador.
   touch-action elimina el retardo de ~300 ms en móvil; el resaltado propio
   del sistema se apaga porque a partir de aquí damos el nuestro.
   --------------------------------------------------------------------------- */
a, button, .btn, input, select, textarea, label, summary,
[role="button"], [role="menuitem"], .nav-toggle {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ---------------------------------------------------------------------------
   2. Botones : la presión hunde el botón con resorte crítico, sin rebote.
   --------------------------------------------------------------------------- */
.btn {
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-press);
}
.btn:active:active { transform: scale(.97); }
.btn:active:active .arrow { transform: translateX(2px); }

/* ---------------------------------------------------------------------------
   3. Tarjetas navegables : se hunden 1 px y toman el color de marca.
   Cubre las clases definidas tanto en shared.css como en el CSS propio de cada página.
   --------------------------------------------------------------------------- */
.sector, .cap-card, .related-card, .project-card, .industry-card,
.service-card, .tile, .channel-row, .pillar, .diff-item, .step,
.legend-chip, .project-ref, .value-card, .tech-card {
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-press);
}
a.sector:active:active,
a.cap-card:active:active,
a.related-card:active:active,
a.industry-card:active:active,
a.service-card:active:active,
a.tile:active:active,
a.channel-row:active:active,
a.project-card:active:active,
.sector:active:active,
.cap-card:active:active,
.related-card:active:active,
.project-card:active:active,
.industry-card:active:active,
.service-card:active:active,
.tile:active:active,
.channel-row:active:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(9, 34, 53, .06);
}

/* ---------------------------------------------------------------------------
   4. Enlaces de navegación, dropdown y enlaces en línea.
   --------------------------------------------------------------------------- */
.dropdown a {
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-press);
}
.dropdown a:active:active { transform: translateX(2px); }

nav > ul > li > a:active:active,
nav > ul > li > .nav-label:active:active { opacity: .62; }

/* Se conservan las propiedades que ya animaban en el diseño aprobado
   (gap en los enlaces con flecha, borde y fondo en los iconos sociales)
   y solo se añaden opacity y transform para la presión. */
.inline-link, .ref-link, .footer-links a, .footer-legal a {
  transition: color var(--dur-base) var(--ease-out), gap var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-press),
              transform var(--dur-fast) var(--ease-press);
}
.socials a {
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-press),
              transform var(--dur-fast) var(--ease-press);
}
.inline-link:active:active,
.ref-link:active:active { opacity: .65; }
.inline-link:active:active .arrow,
.ref-link:active:active .arrow { transform: translateX(2px); }
.socials a:active:active { transform: translateY(0) scale(.94); }
.footer-links a:active:active,
.footer-legal a:active:active { opacity: .6; }

.logo { transition: opacity var(--dur-fast) var(--ease-press); }
.logo:active:active { opacity: .7; }

.nav-toggle { transition: opacity var(--dur-fast) var(--ease-press); }
.nav-toggle:active:active { opacity: .55; }

/* Checkboxes y sus etiquetas en el formulario de contacto */
.check-item, .checkbox-item, label.check {
  transition: transform var(--dur-fast) var(--ease-press);
}
.check-item:active:active,
.checkbox-item:active:active { transform: scale(.99); }

/* ---------------------------------------------------------------------------
   5. FASE 2 · Foco visible.
   Solo aparece en navegación por teclado, nunca al hacer clic con el ratón.
   --------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
[role="menuitem"]:focus-visible {
  outline: 2px solid var(--primary-green, #1f6f5c);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Sobre fondos oscuros el verde de marca pierde contraste: usamos el claro. */
.footer a:focus-visible,
.cta-band a:focus-visible,
.proof-band a:focus-visible,
.page-hero a:focus-visible,
.slogan-bar a:focus-visible,
.tech-stack-band a:focus-visible {
  outline-color: var(--ext-4, #34a88b);
}

/* Se retira el contorno por defecto del navegador solo cuando damos el nuestro */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) { outline: none; }

/* ---------------------------------------------------------------------------
   6. FASE 2 · Campos de formulario.
   Antes no existía ningún estilo de foco: el usuario de teclado quedaba ciego.
   --------------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="number"], select, textarea {
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
input[type="url"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
  border-color: var(--primary-green, #1f6f5c);
  box-shadow: var(--focus-ring);
  outline: none;
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--primary-green, #1f6f5c);
  outline-offset: 2px;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text, #0f1824);
  -webkit-box-shadow: 0 0 0 1000px var(--white, #fff) inset;
}

/* ---------------------------------------------------------------------------
   7. FASE 2 · Enlace de salto al contenido.
   Invisible hasta que el usuario de teclado pulsa Tab por primera vez.
   --------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--primary-dark, #092235);
  color: #fff;
  padding: 14px 22px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  outline: 2px solid var(--ext-4, #34a88b);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   8. FASE 2 · Movimiento reducido.
   El bloque anterior solo apagaba la animación del body. Ahora neutraliza
   de verdad el fadeUp de secciones, los transform y el scroll suave.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  body { animation: none !important; }
  .reveal { opacity: 1 !important; animation: none !important; transform: none !important; }
  .btn:active:active,
  .sector:active:active,
  .cap-card:active:active,
  .related-card:active:active,
  .project-card:active:active { transform: none; }
  .photo-figure:hover img,
  .project-card:hover,
  .related-card:hover,
  .socials a:hover { transform: none !important; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}

/* ---------------------------------------------------------------------------
   9. FASE 2 · Transparencia reducida.
   El material translúcido del header se vuelve sólido.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-transparency: reduce) {
  .header {
    background: var(--white, #fff) !important;
    backdrop-filter: none !important;
  }
  .dropdown {
    background: var(--white, #fff) !important;
    backdrop-filter: none !important;
  }
}

/* ---------------------------------------------------------------------------
   10. FASE 2 · Contraste alto.
   Bordes definidos y texto secundario más firme.
   --------------------------------------------------------------------------- */
@media (prefers-contrast: more) {
  :root { --border: #9aa3ad; --muted: #4b5563; }
  .btn { border-width: 2px; }
  .sector, .cap-card, .related-card, .industry-card, .service-card {
    border-color: #9aa3ad;
  }
  a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline-width: 3px;
  }
}
/* ICIS-INTERACTION-LAYER-END */

/* ICIS-PHASE-345-START */
/* Fase 4 · Material del header y borde de scroll
   Fase 5 · Reveal y seguridad sin JavaScript */
.header {
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
/* El desenfoque del material convierte a la cabecera en bloque contenedor de
   sus descendientes fijos. En escritorio da igual; en móvil el panel del menú
   es hijo suyo y se posicionaba y recortaba contra la cabecera en vez de
   contra la pantalla: salía una tira de 136 px en lugar del panel completo.
   Por eso el filtro vive solo en escritorio, y en móvil la cabecera va opaca
   —que es como se ve igual, porque allí nunca hay nada translúcido detrás. */
@media (min-width: 1025px) {
  .header {
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }
}

.header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(9, 34, 53, .055), rgba(9, 34, 53, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.is-scrolled .header {
  background: rgba(255, 255, 255, .82);
  border-bottom-color: rgba(9, 34, 53, .08);
}
.is-scrolled .header::after { opacity: 1; }

/* Cabecera en móvil. Va DESPUÉS de las reglas .is-scrolled porque aquellas
   tienen más especificidad: colocado antes, al desplazar la página volvía el
   fondo al 82 % y, sin desenfoque (desactivado en móvil), se transparentaba
   el contenido por debajo. Aquí la cabecera es opaca siempre. */
@media (max-width: 1024px) {
  /* Se cualifica con html para subir la especificidad por encima de
     «.is-scrolled .header»: así da igual el orden de las reglas y ninguna
     regla posterior puede devolver el fondo translúcido. */
  html .header,
  html.is-scrolled .header { background: #fff; }
  .dropdown { -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* La barra de eslogan deja de ser pegajosa: entre ella y la cabecera
     ocupaban 126 px fijos de una pantalla de 844. */
  .slogan-bar { position: static; }
  .header { top: 0; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header { background: rgba(255, 255, 255, .97); }
  .is-scrolled .header { background: rgba(255, 255, 255, .99); }
}
.dropdown {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/* Sin JavaScript el contenido debe verse igual: solo se oculta cuando la
   pagina confirma que hay JS. Se usa translate y no transform para dejar
   transform libre a los estados hover y de presion. */
.reveal { opacity: 1; translate: 0 0; }
html.js .reveal {
  opacity: 0;
  translate: 0 12px;
  transition: opacity var(--dur-reveal) var(--ease-soft),
              translate var(--dur-reveal) var(--ease-soft);
  will-change: opacity, translate;
}
html.js .reveal.in { opacity: 1; translate: 0 0; will-change: auto; }
html.js .reveal.d2 { transition-delay: 80ms; }
html.js .reveal.d3 { transition-delay: 160ms; }
html.js .reveal.d4 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; translate: 0 0 !important; transition: none !important; }
  .header::after { display: none; }
}
/* ICIS-PHASE-345-END */

/* ICIS-LEVEL24-START */
/* ============================================================================
   NIVEL 2 · Origen anclado, áreas táctiles y foco
   ============================================================================ */

/* --- Origen anclado -------------------------------------------------------
   El menú emerge desde la esquina superior izquierda, que es donde vive su
   disparador, en lugar de escalar desde su propio centro. Así la relación
   entre el botón y el panel que abre queda explícita. */
.dropdown {
  transform-origin: top left;
  transform: translateY(10px) scale(.985);
}
nav > ul > li.has-dropdown:hover > .dropdown,
nav > ul > li.has-dropdown:focus-within > .dropdown {
  transform: translateY(0) scale(1);
}

/* El menú también debe abrirse al navegar con teclado, no solo con el ratón. */
nav > ul > li.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
}

/* --- Áreas táctiles -------------------------------------------------------
   Mínimo de 44px. Se amplía el area sensible sin agrandar el elemento visual,
   usando un pseudoelemento, para no alterar el diseño aprobado. */
.socials a {
  position: relative;
}
.socials a::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
}
.nav-toggle {
  position: relative;
}
.nav-toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
}

@media (max-width: 1024px) {
  /* En móvil las filas del menú y del pie deben ser cómodas de tocar. */
  nav > ul > li > a,
  nav > ul > li > .nav-label { min-height: 44px; display: flex; align-items: center; }
  .dropdown a { min-height: 44px; }
  .footer-links a,
  .footer-legal a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* La retención del foco con el menú abierto se resuelve en JavaScript
   (ver el bloque ICIS-FOCUS-TRAP), no ocultando nodos con CSS. */

/* ============================================================================
   NIVEL 4 · Impresión
   Los ingenieros imprimen fichas de servicio para reuniones y expedientes.
   Se elimina el cromo de navegación, se recupera el texto en negro sobre
   blanco y se anotan las direcciones de los enlaces.
   ============================================================================ */
@media print {
  @page { margin: 16mm 14mm; }

  html.js .reveal,
  html.js .section-intro,
  html.js .pillar,
  html.js .sector,
  html.js .diff-item,
  html.js .step,
  html.js .project-card {
    opacity: 1 !important;
    translate: 0 0 !important;
    transition: none !important;
  }

  .slogan-bar,
  .header,
  .nav-toggle,
  nav#primary-nav,
  .skip-link,
  .breadcrumb,
  .cta-band,
  .cta-lead,
  .icis-toast,
  .socials,
  .footer-legal,
  .related-grid,
  .sector-nav,
  form,
  .contact-sidebar { display: none !important; }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.45;
  }
  .container { max-width: none !important; padding: 0 !important; }

  /* Los fondos oscuros no se imprimen: se invierten a texto negro. */
  .page-hero,
  .proof-band,
  .tech-stack-band,
  footer,
  .footer {
    background: #fff !important;
    color: #000 !important;
    padding: 0 0 12pt !important;
    min-height: 0 !important;
  }
  .page-hero h1,
  .page-hero .page-lede,
  .page-hero .eyebrow,
  .proof-band h2,
  footer, footer * { color: #000 !important; }
  .proof-bg, .page-hero img[aria-hidden="true"] { display: none !important; }

  h1 { font-size: 20pt; line-height: 1.15; }
  h2 { font-size: 15pt; }
  h3 { font-size: 12.5pt; }
  h1, h2, h3, h4, .card-h { break-after: avoid; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }

  section { break-inside: avoid-page; padding: 10pt 0 !important; }
  img { max-width: 100% !important; break-inside: avoid; }

  /* Un enlace impreso sin su dirección es un callejón sin salida. */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  a[href^="#"]::after,
  a[href$=".html"]::after,
  /* En WordPress los enlaces internos son absolutos: sin esto, al imprimir
     saldría la dirección completa detrás de cada enlace del propio sitio. */
  a[href*="grupoicis.com"]::after { content: ""; }

  /* Pie de página impreso con la identificación fiscal de la firma. */
  .legal-body::after,
  .industry-body::after {
    content: "ICIS, C.A. · RIF J-402279639 · Maracaibo, Estado Zulia, Venezuela · contacto@grupoicis.com";
    display: block;
    margin-top: 14pt;
    padding-top: 8pt;
    border-top: 1px solid #999;
    font-size: 8.5pt;
    color: #444;
  }
}
/* ICIS-LEVEL24-END */

/* ICIS-NAV-PARITY-START */
/* Cabecera idéntica en todas las páginas.
   Fuente de verdad: el <style> del Home. Sin esta paridad el menú
   cambiaba de ancho entre páginas y se percibía un salto. */
/* Estas reglas describen la cabecera de escritorio. Antes vivían fuera de
   toda media query y, al ir después del bloque móvil, lo anulaban: el botón
   del menú quedaba oculto en todos los anchos y la lista no se apilaba.
   Ahora se limitan a escritorio. */
@media (min-width: 1025px) {
  .header nav#primary-nav { margin-left: auto; }
  .header .nav-cta { margin-left: 20px; }
  nav ul { display: flex; list-style: none; gap: 40px; align-items: center; padding-right: 4px; }
  nav > ul > li { position: relative; }
  nav > ul > li > a, nav > ul > li > .nav-label { font-size: 0.875rem; color: var(--primary-dark); font-weight: 500; letter-spacing: 0.015em; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; position: relative; text-decoration: none; transition: color var(--dur-base); }
  nav > ul > li > a::before, nav > ul > li > .nav-label::before { content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1.5px; background: var(--primary-green); transition: right var(--dur-slow) var(--ease-out); }
  nav > ul > li > a:hover::before, nav > ul > li > .nav-label:hover::before { right: 0; }
  nav > ul > li > a:hover, nav > ul > li > .nav-label:hover { color: var(--primary-green); }
  nav > ul > li.has-dropdown > .nav-label::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--dur-base); margin-left: 2px; }
  nav > ul > li.has-dropdown:hover > .nav-label::after { transform: rotate(225deg); }
  nav > ul > li:last-child > a { color: var(--primary-green); }
  nav > ul > li:last-child > a::after { content: '→'; display: inline-block; font-size: 0.8125rem; margin-left: 6px; transition: transform var(--dur-base) var(--ease-out); }
  nav > ul > li:last-child > a:hover::after { transform: translateX(4px); }
  nav > ul > li.has-dropdown:hover > .dropdown, nav > ul > li.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-cta { display: flex; gap: 12px; align-items: center; }
  .nav-toggle { display: none; width: 42px; height: 42px; background: transparent; border: 1px solid var(--border); border-radius: 3px; cursor: pointer; position: relative; }
  .nav-toggle span { display: block; position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--primary-dark); transition: transform var(--dur-base), opacity var(--dur-base), top var(--dur-base); }
  .nav-toggle span:nth-child(1) { top: 14px; }
  .nav-toggle span:nth-child(2) { top: 20px; }
  .nav-toggle span:nth-child(3) { top: 26px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
  a, button, .btn, input, select, textarea, label, summary, [role="button"], [role="menuitem"], .nav-toggle { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  nav > ul > li > a:active:active, nav > ul > li > .nav-label:active:active { opacity: .62; }
  .nav-toggle { transition: opacity var(--dur-fast) var(--ease-press); }
  .nav-toggle:active:active { opacity: .55; }
  nav > ul > li.has-dropdown:hover > .dropdown, nav > ul > li.has-dropdown:focus-within > .dropdown { transform: translateY(0) scale(1); }
  nav > ul > li.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; }
  .nav-toggle { position: relative; }
  .nav-toggle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
}
/* ICIS-NAV-PARITY-END */

/* ICIS-CRAFT-START */
/* La barra de desplazamiento siempre reserva su espacio: si una página es
   corta y otra larga, el ancho útil no cambia y el contenido no salta
   horizontalmente al navegar. */
html { scrollbar-gutter: stable; }

/* ============================================================================
   CAPA DE OFICIO · Refinamiento tipográfico y de detalle
   No cambia colores, layout ni contenido: corrige el tratamiento del texto
   y dos comportamientos que fallaban en silencio.
   ============================================================================ */

/* --- 1. Anclajes bajo la cabecera fija -------------------------------------
   El chrome fijo mide 121px (barra de eslogan 39 + cabecera 82). Sin esta
   compensación, al saltar a un anclaje el título quedaba oculto detrás.
   Afecta al enlace "Saltar al contenido" y al índice de las páginas legales. */
html {
  scroll-padding-top: 132px;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
:target { scroll-margin-top: 132px; }

/* --- 2. Tamaño óptico de la tipografía display ----------------------------
   Fraunces es variable y expone el eje opsz: a tamaños grandes afina el
   contraste del trazo y a tamaños pequeños lo engrosa. Sin esta línea el
   navegador nunca lo aplicaba, pese a que la fuente ya se descargaba con él. */
h1, h2, h3, h4, h5, h6,
.page-hero h1,
.section-intro-head h2 {
  font-optical-sizing: auto;
}

/* --- 3. Reparto de línea ---------------------------------------------------
   balance evita que un titular deje una palabra suelta en la última línea;
   pretty hace lo propio con los párrafos. Es puro reparto: no altera
   tamaños, pesos ni márgenes. */
h1, h2, h3, h4,
.page-hero h1,
.hero h1 {
  text-wrap: balance;
}
p, .page-lede, .hero-lede, .body-p, .section-intro-body p, li {
  text-wrap: pretty;
}

/* --- 4. Texto claro sobre fondo oscuro ------------------------------------
   Sobre superficies oscuras el trazo se engorda ópticamente. El suavizado
   por escala de grises lo devuelve al peso que el diseño pretende. */
.page-hero,
.proof-band,
.slogan-bar,
.cta-band,
.tech-stack-band,
footer,
.site-footer {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- 5. Anchura de lectura del lede ---------------------------------------
   Se restablece la medida aprobada. Una línea de lectura demasiado corta
   frente a un contenedor de 1200px deja el bloque descolgado a la izquierda. */
.page-hero .page-lede { max-width: 57rem; }
.page-hero.hero-left .page-lede { max-width: 55rem; }

/* --- 6. Selección de texto en color de marca ------------------------------ */
/* Resaltado de texto: solo se tiñe el fondo y nunca se fija el color, para que
   el texto conserve el suyo. Así funciona igual sobre fondo claro y sobre el
   azul de marca, sin volverse ilegible en las superficies oscuras. */
::selection { background: rgba(52, 168, 139, .32); text-shadow: none; }
::-moz-selection { background: rgba(52, 168, 139, .32); text-shadow: none; }

/* --- 7. Cifras tabulares en datos ----------------------------------------
   Las tensiones y los conteos se alinean en columna cuando comparten anchura
   de dígito. */
.proof-band-stat .num,
.stat-num,
.meta-item strong,
.legal-meta .meta-value,
th, td {
  font-variant-numeric: tabular-nums;
}

/* --- 8. Comillas tipográficas en citas ------------------------------------ */
blockquote, .quote { quotes: '«' '»' '\201C' '\201D'; }
/* ICIS-CRAFT-END */

/* La imagen va entre el contexto y la experiencia del sector: necesita el
   mismo respiro inferior que tienen las tarjetas entre sí. */
.industry-main .photo-figure { margin-bottom: var(--space-4); }

/* sub y sup en texto corrido: no deben alterar la altura de línea del párrafo. */
p sub, p sup, li sub, li sup, .feature-list sub, .feature-list sup {
  font-size: .72em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
p sup, li sup, .feature-list sup { top: -.45em; }
p sub, li sub, .feature-list sub { bottom: -.2em; }

/* ICIS-MOVIL-LEGIBILIDAD
   Las etiquetas en versalitas (Ubicación, Tensión, Oficina principal…) miden
   10–10,5 px, que en una pantalla de teléfono queda al límite de lo cómodo.
   Suben a 11 px por debajo de 640 px; en escritorio se mantienen como están.
   El enlace del logotipo pasa a 44 px de alto para que el área táctil cumpla
   la recomendación de Apple y Google, sin tocar el tamaño de la imagen. */
@media (max-width: 640px) {
  .footer-contact-item span,
  .project-tile .meta-item .m-label,
  .cta-channels .ch-label,
  .m-label,
  .ch-label { font-size: 0.6875rem; }
}
@media (max-width: 1024px) {
  .header .logo { min-height: 44px; }
}
