/* =============================================================
   GISSEI S.A. de C.V. — Landing page
   Aesthetic: "Engineered Trust" — precision corporate, technical
   blueprint motifs, deep corporate blue, safety-orange accent.
   Architecture: mobile-first, design tokens, reusable components.
   ============================================================= */

/* -------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------- */
:root {
  /* Brand — blues */
  --blue-900: #062b52;
  --blue-800: #073b6f; /* azul profundo */
  --blue-700: #075a9e; /* azul principal */
  --blue-600: #1f73b8;
  --blue-300: #9fc4e3;
  --blue-100: #dcebf8;
  --blue-50:  #eef6fc;

  /* Brand — green (medio ambiente) */
  --green-700: #237a36;
  --green-600: #2e9a44;
  --green-100: #e3f3e7;

  /* Brand — safety accent */
  --orange-600: #e0950f;
  --orange-500: #f5a623;
  --orange-100: #fdeccb;

  /* Neutrals */
  --ink:     #17212b; /* texto oscuro */
  --ink-soft:#3c4b5a; /* texto secundario */
  --muted:   #647488;
  --bg:      #f6f9fc; /* fondo claro */
  --surface: #ffffff;
  --surface-2: #f2f6fb;
  --line:      #e2eaf2;
  --line-strong: #cdd9e6;

  /* Typography */
  --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-xs: 7px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Shadows — restrained */
  --shadow-xs: 0 1px 2px rgba(7, 59, 111, .06);
  --shadow-sm: 0 4px 14px rgba(7, 59, 111, .07);
  --shadow-md: 0 14px 36px rgba(7, 59, 111, .10);
  --shadow-lg: 0 30px 70px rgba(6, 43, 82, .16);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .18s;
  --t: .32s;
}

/* -------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul, ol { list-style: none; padding: 0; }

/* Icon system — inline SVG sprite, Lucide-style stroke icons */
.icon {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue-700); color: #fff; }

/* -------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blue-900);
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.15rem, 4.6vw + 1rem, 3.85rem);
  line-height: 1.04;
}

h2.section__title {
  font-size: clamp(1.85rem, 2.6vw + 1rem, 2.9rem);
}

h3 { font-size: clamp(1.18rem, 0.7vw + 1rem, 1.42rem); }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.06rem, 0.7vw + 0.95rem, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.6;
}

strong { font-weight: 700; color: var(--blue-800); }

/* -------------------------------------------------------------
   4. Layout primitives
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }

.section--tint { background: var(--surface); }
.section--bg { background: var(--bg); }

.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__intro { margin-top: 1rem; }

/* Eyebrow — technical/dossier index label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 1.1rem;
}
.section__head--center .eyebrow { justify-content: center; }
.eyebrow__idx {
  font-variant-numeric: tabular-nums;
  color: var(--orange-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-500), var(--blue-600));
  border-radius: 2px;
}

.text-grad-green { color: var(--green-600); }

/* -------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-700);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .92rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.01em;
  line-height: 1;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 19px; height: 19px; }

.btn--primary {
  background: var(--blue-700);
  box-shadow: 0 10px 24px rgba(7, 90, 158, .28);
}
.btn--primary:hover { background: var(--blue-800); box-shadow: 0 16px 32px rgba(7, 90, 158, .34); }
.btn--primary .btn__arrow { transition: transform var(--t) var(--ease); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

.btn--whatsapp { background: #1faf57; box-shadow: 0 10px 24px rgba(31,175,87,.3); }
.btn--whatsapp:hover { background: #169049; }

.btn--outline {
  background: transparent;
  color: var(--blue-800);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--blue-600); background: var(--blue-50); }

.btn--ghost-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.16); border-color: #fff; }

.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }

/* -------------------------------------------------------------
   6. Header
   ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -100%;
  z-index: 200;
  background: var(--blue-800);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--r-sm);
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t) var(--ease),
              border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 1; min-width: 0; }
.brand__logo { height: 42px; width: auto; flex-shrink: 0; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name-main, .brand__name-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.primary-nav { display: none; }

.nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: .55rem .85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink-soft);
  border-radius: var(--r-xs);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .34rem;
  height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav-list a:hover { color: var(--blue-800); }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--blue-800); }

.header__actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.header__cta { display: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 46px; height: 46px;
  padding: 0 11px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  background: var(--surface);
}
.nav-toggle__bar {
  display: block;
  height: 2px; width: 100%;
  background: var(--blue-800);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(8, 33, 60, .55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  background: var(--surface);
  border-bottom: 3px solid var(--orange-500);
  padding: 1.4rem var(--gutter) 2rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateY(0); opacity: 1; }
.mobile-menu a.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem .25rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--blue-900);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.m-link .icon { width: 18px; height: 18px; color: var(--blue-300); }
.mobile-menu .btn { margin-top: 1.5rem; }

/* -------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(120% 90% at 92% -10%, var(--blue-50) 0%, rgba(238,246,252,0) 55%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  overflow: hidden;
}
/* blueprint dot texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(7,90,158,.06) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 10%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 80% at 70% 10%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  max-width: 100%;
  padding: .5rem .95rem .5rem .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-soft);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.5rem;
}
.hero__eyebrow .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px var(--green-100);
  flex-shrink: 0;
}

.hero h1 { margin-bottom: 1.3rem; }
.hero h1 .accent { color: var(--blue-700); }
.hero__sub { max-width: 56ch; margin-bottom: 2rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }

.hero__note {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  max-width: 52ch;
  padding: .85rem 1.05rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-left: 3px solid var(--blue-600);
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--ink-soft);
}
.hero__note .icon { width: 19px; height: 19px; color: var(--blue-700); flex-shrink: 0; margin-top: 2px; }

/* Pillars row */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
  margin-top: 2.2rem;
}
.pillar {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--blue-900);
  box-shadow: var(--shadow-xs);
}
.pillar__ic {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}
.pillar__ic .icon { width: 20px; height: 20px; }
.pillar--seg .pillar__ic { background: var(--blue-100); color: var(--blue-700); }
.pillar--sal .pillar__ic { background: #e7eefb; color: #2a55c6; }
.pillar--pc  .pillar__ic { background: var(--orange-100); color: var(--orange-600); }
.pillar--amb .pillar__ic { background: var(--green-100); color: var(--green-700); }

/* Acreditaciones EMA */
.creds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
  margin-top: .9rem;
}
.cred {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
}
.cred__ic {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--green-100);
  color: var(--green-700);
}
.cred__ic .icon { width: 22px; height: 22px; }
.cred__body { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.cred__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .86rem;
  line-height: 1.25;
  color: var(--blue-900);
}
.cred__ema { text-transform: uppercase; letter-spacing: .02em; }
.cred__sub {
  font-size: .72rem;
  color: var(--muted);
}

/* Hero visual — shield composition */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-inline: auto;
  width: 100%;
}
.hero__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.hero__rings {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 60%);
}
.hero__rings::before,
.hero__rings::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--blue-300);
  opacity: .55;
  animation: spin 60s linear infinite;
}
.hero__rings::after { inset: 13%; border-style: solid; border-color: var(--line-strong); animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__plate {
  position: relative;
  width: 72%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, #ffffff 0%, #f3f8fd 100%);
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
/* registration corner ticks */
.hero__plate::before,
.hero__plate::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--orange-500);
}
.hero__plate::before { top: 14px; left: 14px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.hero__plate::after  { bottom: 14px; right: 14px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }
.hero__shield { width: 76%; filter: drop-shadow(0 18px 30px rgba(7,59,111,.18)); }

/* floating chips around shield */
.hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .8rem;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  color: var(--blue-900);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.hero__chip .icon { width: 16px; height: 16px; }
.hero__chip--1 { top: 6%;  left: -2%;  color: var(--blue-700); }
.hero__chip--1 .icon { color: var(--blue-700); }
.hero__chip--2 { top: 40%; right: -6%; color: var(--green-700); }
.hero__chip--2 .icon { color: var(--green-600); }
.hero__chip--3 { bottom: 7%; left: 4%;  color: var(--orange-600); }
.hero__chip--3 .icon { color: var(--orange-500); }
.hero__chip { animation: floaty 6s ease-in-out infinite; }
.hero__chip--2 { animation-delay: -2s; }
.hero__chip--3 { animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* -------------------------------------------------------------
   8. Solutions cards
   ------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.s-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
.s-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }

/* media (photo) */
.s-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.s-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.s-card:hover .s-card__media img { transform: scale(1.06); }
.s-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,33,60,.05) 0%, rgba(7,33,60,.32) 100%);
}
.s-card__num {
  position: absolute;
  top: .7rem; right: .8rem;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  color: #fff;
  padding: .2rem .55rem;
  background: rgba(8,33,60,.5);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* body (icon badge + text) */
.s-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 2.4rem 1.55rem 1.7rem;
}
.s-card__ic {
  position: absolute;
  top: -27px; left: 1.55rem;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
}
.s-card__ic .icon { width: 27px; height: 27px; stroke-width: 1.7; }
.s-card h3 { color: var(--blue-900); }
.s-card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* color variants per card icon */
.s-card:nth-child(2) .s-card__ic { background: #e7eefb; color: #2a55c6; border-color: #d7e2fb; }
.s-card:nth-child(3) .s-card__ic { background: var(--orange-100); color: var(--orange-600); border-color: #fbe2b6; }
.s-card:nth-child(4) .s-card__ic { background: #fde8e4; color: #d24b2f; border-color: #fad6cf; }
.s-card:nth-child(5) .s-card__ic { background: var(--blue-100); color: var(--blue-800); border-color: #cfe1f3; }
.s-card:nth-child(6) .s-card__ic { background: var(--green-100); color: var(--green-700); border-color: #c9e9d1; }

/* -------------------------------------------------------------
   8b. Gallery — "Nuestro trabajo"
   ------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.gallery__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(6,43,82,.8) 100%);
}
.gallery__label {
  position: absolute;
  left: 1rem; bottom: .95rem;
  z-index: 1;
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.gallery__label::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
}

/* -------------------------------------------------------------
   9. Detailed services — accordion
   ------------------------------------------------------------- */
.services__layout { display: grid; gap: clamp(1.6rem, 3vw, 2.5rem); }

.accordion { display: flex; flex-direction: column; gap: .8rem; }
.acc-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.acc-item.is-open { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.acc-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 0.6vw + 0.9rem, 1.15rem);
  color: var(--blue-900);
}
.acc-trigger__ic {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--blue-50);
  color: var(--blue-700);
  flex-shrink: 0;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.acc-trigger__ic .icon { width: 21px; height: 21px; }
.acc-item.is-open .acc-trigger__ic { background: var(--blue-700); color: #fff; }
.acc-trigger__txt { flex: 1; }
.acc-trigger__chevron {
  width: 22px; height: 22px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--t) var(--ease), color var(--t-fast) var(--ease);
}
.acc-item.is-open .acc-trigger__chevron { transform: rotate(180deg); color: var(--blue-700); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel__inner { overflow: hidden; }
.acc-panel ul { padding: 0 1.3rem 1.3rem 1.3rem; display: grid; gap: .7rem; }
.acc-panel li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-soft);
  font-size: .97rem;
  line-height: 1.55;
}
.acc-panel li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 1.15rem; height: 1.15rem;
  background: var(--green-100);
  border-radius: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23237a36' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Sticky aside in services */
.services__aside { align-self: start; }
.aside-card {
  background: linear-gradient(160deg, var(--blue-800), var(--blue-900));
  color: #fff;
  border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.aside-card::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245,166,35,.22), transparent 68%);
}
.aside-card h3 { color: #fff; margin-bottom: .7rem; }
.aside-card p { color: rgba(255,255,255,.82); font-size: .96rem; margin-bottom: 1.4rem; }
.aside-card .btn { width: 100%; }
.aside-card__list { display: grid; gap: .65rem; margin: 1.3rem 0; }
.aside-card__list li { display: flex; gap: .6rem; align-items: center; font-size: .92rem; color: rgba(255,255,255,.9); }
.aside-card__list .icon { width: 18px; height: 18px; color: var(--orange-500); flex-shrink: 0; }

/* -------------------------------------------------------------
   10. Benefits
   ------------------------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.benefit {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.benefit__ic {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-700);
  flex-shrink: 0;
}
.benefit__ic .icon { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.benefit p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* -------------------------------------------------------------
   9b. Nosotros — Misión, Visión y Valores
   ------------------------------------------------------------- */
.mvv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.mvv-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.7rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mvv-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--orange-500), var(--blue-600));
}
.mvv-card__ic {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue-700);
  margin-bottom: 1.1rem;
}
.mvv-card__ic .icon { width: 28px; height: 28px; }
.mvv-card--vision .mvv-card__ic { background: var(--green-100); color: var(--green-700); }
.mvv-card h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.5rem); margin-bottom: .6rem; }
.mvv-card p { color: var(--ink-soft); margin: 0; }

.values { margin-top: clamp(2.4rem, 5vw, 3.5rem); }
.values__title {
  text-align: center;
  font-size: clamp(1.3rem, 1.4vw + 1rem, 1.7rem);
  margin-bottom: clamp(1.4rem, 3vw, 2.1rem);
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.value-card {
  text-align: center;
  padding: 1.7rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t-fast) var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--blue-100); }
.value-card__ic {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  margin-bottom: 1rem;
}
.value-card__ic .icon { width: 28px; height: 28px; }
.value-card h4 { font-size: 1.12rem; margin-bottom: .4rem; }
.value-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.value-card--prev .value-card__ic { background: var(--blue-100); color: var(--blue-700); }
.value-card--int  .value-card__ic { background: var(--orange-100); color: var(--orange-600); }
.value-card--sus  .value-card__ic { background: var(--green-100); color: var(--green-700); }
.value-card--comp .value-card__ic { background: #fde8e4; color: #d24b2f; }

/* -------------------------------------------------------------
   10b. Ubicación
   ------------------------------------------------------------- */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  max-width: 760px;
  margin: 0 auto;
}
.location-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t-fast) var(--ease);
}
.location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--blue-100); }
.location-card__ic {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-700);
  flex-shrink: 0;
}
.location-card__ic .icon { width: 26px; height: 26px; }
.location-card__label {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.location-card h3 { font-size: 1.2rem; margin: .15rem 0 .3rem; }
.location-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* -------------------------------------------------------------
   11. Process
   ------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  padding: 1.7rem 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 13px;
  margin-bottom: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.step__num::before { content: counter(step, decimal-leading-zero); counter-increment: step; }
.step h3 { font-size: 1.14rem; margin-bottom: .45rem; }
.step p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.step__ic {
  position: absolute;
  top: 1.7rem; right: 1.4rem;
  width: 22px; height: 22px;
  color: var(--blue-300);
}

/* -------------------------------------------------------------
   12. Final CTA
   ------------------------------------------------------------- */
.cta-final { position: relative; }
.cta-final__inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.6rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  background:
    linear-gradient(120deg, rgba(7,90,158,.93) 0%, rgba(7,59,111,.93) 55%, rgba(4,29,58,.95) 100%),
    url("../img/photos/cta-bg.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-final__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 70%);
}
.cta-final__inner::after {
  content: "";
  position: absolute;
  left: -60px; bottom: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(46,154,68,.34), transparent 65%);
}
.cta-final__content { position: relative; z-index: 1; max-width: 660px; margin-inline: auto; }
.cta-final .eyebrow { color: #fff; }
.cta-final .eyebrow__idx { color: var(--orange-500); }
.cta-final .eyebrow::before { background: var(--orange-500); }
.cta-final h2 { color: #fff; margin-bottom: 1rem; font-size: clamp(1.9rem, 2.8vw + 1rem, 3rem); }
.cta-final p { color: rgba(255,255,255,.86); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-final__btns { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

/* -------------------------------------------------------------
   13. Contact
   ------------------------------------------------------------- */
.contact__grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); }

.contact__info h3 { font-size: clamp(1.4rem, 1.6vw + 1rem, 1.85rem); margin-bottom: 1rem; }
.contact__info > p { color: var(--ink-soft); margin-bottom: 1.8rem; max-width: 46ch; }

.contact-list { display: grid; gap: .85rem; margin-bottom: 1.6rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
}
a.contact-item:hover { border-color: var(--blue-100); transform: translateX(3px); box-shadow: var(--shadow-xs); }
.contact-item__ic {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  flex-shrink: 0;
}
.contact-item__ic .icon { width: 22px; height: 22px; }
.contact-item--wa .contact-item__ic { background: #e4f7ec; color: #1faf57; }
.contact-item__label { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.contact-item__value { font-family: var(--font-display); font-weight: 600; color: var(--blue-900); font-size: 1.05rem; word-break: break-word; }

.contact__cta-wa { margin-top: .4rem; }

/* Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-sm);
}
.form-card__head { margin-bottom: 1.5rem; }
.form-card__head h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.form-card__head p { color: var(--ink-soft); font-size: .94rem; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  color: var(--blue-900);
}
.field label .req { color: var(--orange-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .82rem .95rem;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23647488' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 4px var(--blue-50);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa8b8; }

.field .error-msg {
  font-size: .82rem;
  color: #d24b2f;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d24b2f; background: #fdf2f0; }
.field.has-error .error-msg { display: block; }

.form-foot { margin-top: 1.4rem; display: grid; gap: .9rem; }
.form-note {
  display: flex; gap: .55rem; align-items: flex-start;
  font-size: .82rem; color: var(--muted);
}
.form-note .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--blue-300); }
.form-feedback {
  display: none;
  gap: .55rem; align-items: center;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  font-size: .92rem;
  background: var(--green-100);
  color: var(--green-700);
  border: 1px solid #c9e9d1;
}
.form-feedback.is-visible { display: flex; }
.form-feedback .icon { width: 19px; height: 19px; flex-shrink: 0; }

/* -------------------------------------------------------------
   14. Footer
   ------------------------------------------------------------- */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.72);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
}
.footer__brand { max-width: 34ch; }
.footer__logo { height: 56px; width: auto; margin-bottom: 1.1rem; }
.footer__tagline { font-family: var(--font-display); font-weight: 600; color: #fff; margin-bottom: .35rem; }
.footer__desc { font-size: .92rem; line-height: 1.6; }
.footer__col h4 {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-300); margin-bottom: 1.1rem; font-weight: 600;
}
.footer__col ul { display: grid; gap: .7rem; }
.footer__col a, .footer__col li { font-size: .95rem; color: rgba(255,255,255,.78); transition: color var(--t-fast) var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__col .row { display: flex; gap: .6rem; align-items: center; }
.footer__col .row .icon { width: 17px; height: 17px; color: var(--blue-300); flex-shrink: 0; }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
}
.footer__bottom .disclaimer { color: rgba(255,255,255,.5); font-size: .8rem; }

/* -------------------------------------------------------------
   15. Scroll reveal
   ------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Hero load animation */
.hero [data-anim] { opacity: 0; transform: translateY(20px); }
.hero.is-ready [data-anim] {
  animation: rise .8s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------
   15b. Dark hero (high-impact)
   ------------------------------------------------------------- */
.hero--dark {
  background: linear-gradient(165deg, #0a3563 0%, #072b52 44%, #04203f 100%);
  color: #e7eff8;
  isolation: isolate;
}
.hero--dark::before { display: none; } /* replace base dot-grid with layered bg */

.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__lines {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(125% 115% at 74% 4%, #000 0%, transparent 72%);
          mask-image: radial-gradient(125% 115% at 74% 4%, #000 0%, transparent 72%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(64px); }
.hero__glow--blue   { width: 46vw; height: 46vw; top: -18%; right: -8%; background: radial-gradient(circle, #2a86d6, transparent 68%); opacity: .5; }
.hero__glow--orange { width: 30vw; height: 30vw; top: 30%; right: 32%; background: radial-gradient(circle, #f5a623, transparent 66%); opacity: .22; }
.hero__glow--green  { width: 42vw; height: 42vw; bottom: -24%; left: -12%; background: radial-gradient(circle, #2e9a44, transparent 68%); opacity: .32; }

.hero--dark h1 { color: #fff; }
.hero--dark h1 .accent { color: #8fd6ff; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero--dark h1 .accent {
    background: linear-gradient(100deg, #7fd0ff 0%, #9ff0c4 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
.hero--dark .hero__sub { color: rgba(231,239,248,.82); }

.hero--dark .hero__eyebrow {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero--dark .hero__note {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  border-left-color: var(--orange-500);
  color: rgba(231,239,248,.82);
}
.hero--dark .hero__note .icon { color: var(--orange-500); }

/* Bright primary CTA against the navy */
.hero__cta-primary {
  background: #ffffff;
  color: var(--blue-900);
  box-shadow: 0 14px 34px rgba(2, 16, 35, .42);
}
.hero__cta-primary:hover { background: #e9f2fc; }
.hero__cta-primary .btn__arrow { transition: transform var(--t) var(--ease); }
.hero__cta-primary:hover .btn__arrow { transform: translateX(4px); }

/* Pillars as glass on dark */
.hero--dark .pillar {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.1);
  color: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero--dark .pillar--seg .pillar__ic { background: rgba(42,134,214,.26); color: #9fd0f5; }
.hero--dark .pillar--sal .pillar__ic { background: rgba(58,98,210,.3);  color: #b2c1ff; }
.hero--dark .pillar--pc  .pillar__ic { background: rgba(245,166,35,.22); color: #ffc869; }
.hero--dark .pillar--amb .pillar__ic { background: rgba(46,154,68,.26);  color: #84e0a0; }

/* Illuminated shield: light plate that pops on the dark backdrop */
.hero__halo {
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, rgba(127,200,255,.55), rgba(46,154,68,.18) 46%, transparent 70%);
  filter: blur(28px);
}
.hero--dark .hero__rings { background: none; }
.hero--dark .hero__rings::before { border-color: rgba(255,255,255,.24); opacity: .85; }
.hero--dark .hero__rings::after  { border-color: rgba(255,255,255,.12); }
.hero--dark .hero__plate {
  background: radial-gradient(circle at 50% 28%, #ffffff 0%, #e9f2fb 100%);
  border-color: rgba(255,255,255,.65);
  box-shadow: 0 44px 90px rgba(2,16,35,.5), 0 0 0 1px rgba(255,255,255,.16);
}
.hero--dark .hero__chip { background: rgba(255,255,255,.97); box-shadow: 0 16px 32px rgba(2,16,35,.45); }

/* -------------------------------------------------------------
   15c. Mobile sticky action bar (conversion)
   ------------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  gap: .6rem;
  padding: .55rem .7rem;
  padding-bottom: calc(.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(7,59,111,.13);
  transform: translateY(130%);
  transition: transform .4s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar__btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 52px;
  padding: .7rem 1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  transition: transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}
.mobile-bar__btn .icon { width: 20px; height: 20px; }
.mobile-bar__btn--wa { background: #1faf57; }
.mobile-bar__btn--call { background: var(--blue-700); }
.mobile-bar__btn:active { transform: scale(.98); filter: brightness(.96); }
@media (max-width: 719px) { .mobile-bar { display: flex; } }

/* Micro-interaction: icon lift on solution-card hover */
.s-card__ic { transition: transform var(--t) var(--ease), background var(--t) var(--ease); }
.s-card:hover .s-card__ic { transform: translateY(-3px) scale(1.04); }

/* -------------------------------------------------------------
   16. Responsive
   ------------------------------------------------------------- */
/* Mobile polish & performance (≤ 719px) */
@media (max-width: 719px) {
  .hero { padding-top: calc(var(--header-h) + 1.75rem); }
  .hero__glow { filter: blur(46px); }          /* cheaper blur on phones */
  .hero__visual { max-width: 340px; }
  .site-footer { padding-bottom: 6.5rem; }      /* clear the sticky action bar */
}

/* Narrow phones — stack hero CTAs full width to avoid overflow */
@media (max-width: 559px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero__chip { font-size: .74rem; padding: .42rem .62rem; }
  .hero__chip--1 { left: 0; }
  .hero__chip--2 { right: -2%; }
}

/* Smallest phones — keep the brand from crowding the menu button */
@media (max-width: 360px) {
  .brand__name-sub { display: none; }
}

@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

@media (min-width: 720px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .mvv { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .primary-nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .brand__logo { height: 50px; }

  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .pillars { margin-top: 0; }

  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid::before {
    content: "";
    position: absolute;
    top: 42px; left: 8%; right: 8%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
    z-index: 0;
  }
  .step { z-index: 1; }

  .services__layout { grid-template-columns: 1.55fr 1fr; align-items: start; }
  .services__aside { position: sticky; top: calc(var(--header-h) + 20px); }

  .contact__grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
}

@media (min-width: 1140px) {
  .benefit { padding: 1.7rem 1.6rem; }
}

/* Brand name text (desktop) */
.brand__name .brand__name-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--blue-900);
}
.brand__name .brand__name-sub {
  font-size: .64rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* -------------------------------------------------------------
   17. Reduced motion
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero [data-anim] { opacity: 1; transform: none; }
  .hero__chip, .hero__rings::before, .hero__rings::after { animation: none !important; }
}
