/* ============================================================
   main.css — TEGA Instruments
   CSS MAESTRO: UN SOLO ARCHIVO PARA TODO EL SITIO
   Versión 1.0 · Abril 2026
   ============================================================ */

/* ─── VARIABLES ────────────────────────────────────────────── */
:root {
  --navy:      #06275a;
  --blue:      #144086;
  --lblue:     #4a90c8;
  --gold:      #C9A84C;
  --green-wa:  #1DA851;
  --white:     #ffffff;
  --black:     #1a1f2e;
  --gray-bg:   #f4f6fa;
  --gray-head: #e8eaf0;
  --gray-mid:  #e6ecf5;
  --gray-brd:  #d6dfee;
  --gray-txt:  #5a6c89;
  --gray-dk:   #3d4d68;
  --font:      Arial, 'Arial Narrow', Helvetica, sans-serif;
  --radius:    5px;
  --radius-lg: 10px;
  --shadow:    0 10px 32px rgba(20,64,134,.14);
  --shadow-sm: 0 4px 12px rgba(20,64,134,.12);
  --trans:     all 0.18s ease;
  --max-w:     1200px;
  --pad-x:     28px;
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5,h6,p,ul,ol { margin: 0; padding: 0; }
ul,ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ─── UTILIDADES ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section      { padding: 64px 0; }
.section-gray { padding: 64px 0; background: var(--gray-bg); }
.bg-blue      { background: var(--blue); }
.bg-navy      { background: var(--navy); }
.bg-gradient  { background: linear-gradient(135deg, var(--blue), #0d2d6e); }

/* ─── BOTONES ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 14px;
  padding: 13px 22px; border-radius: var(--radius);
  border: none; cursor: pointer; text-decoration: none;
  transition: var(--trans);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn-primary { background: var(--blue);  color: var(--white); }
.btn-white   { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn-wa      { background: var(--green-wa); color: var(--white); }
.btn-sm      { padding: 9px 16px; font-size: 13px; }

/* ─── WA FLOTANTE ─────────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 26px; right: 26px;
  background: var(--green-wa); color: var(--white);
  padding: 13px 20px; border-radius: 50px;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 22px rgba(29,168,81,.45);
  display: flex; align-items: center; gap: 10px;
  z-index: 9000; text-decoration: none;
  transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px); }

/* ================================================================
   MENÚ GLOBAL — nav-global.php
   ================================================================ */
.site-header {
  background: var(--gray-head);
  border-bottom: 1px solid var(--gray-brd);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

/* Marca */
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-t1 { color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.brand-t2 { color: var(--gray-txt); font-size: 11px; letter-spacing: 1.5px; font-style: italic; }

/* Nav links */
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--gray-dk); font-size: 13px; font-weight: 500;
  padding: 6px 10px; border-radius: var(--radius);
  transition: var(--trans); white-space: nowrap;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.nav-link:hover, .nav-active { color: var(--blue); background: rgba(20,64,134,.07); }

/* Botón WA nav */
.btn-nav-wa {
  display: flex; align-items: center; gap: 7px;
  background: var(--green-wa); color: var(--white);
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700;
  transition: var(--trans); margin-left: 6px;
}
.btn-nav-wa:hover { filter: brightness(1.08); }

/* Dropdown arrow */
.nav-arrow { transition: transform .2s; }
.nav-dropdown-btn[aria-expanded="true"] .nav-arrow { transform: rotate(180deg); }

/* MEGA DROPDOWN */
.nav-dropdown-wrap { position: relative; }
.nav-mega {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(10,20,50,.18);
  min-width: 640px; z-index: 300;
  animation: dropIn .15s ease;
}
.nav-mega--sm { min-width: 240px; }
@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-dropdown-wrap:hover .nav-mega,
.nav-dropdown-wrap .nav-dropdown-btn[aria-expanded="true"] + .nav-mega { display: block; }

.nav-mega-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: 20px 0;
}
.nav-mega--sm .nav-mega-inner { grid-template-columns: 1fr; }

.nav-mega-col {
  padding: 0 20px;
  border-right: 1px solid var(--gray-mid);
}
.nav-mega-col:last-child { border-right: none; }

.nav-mega-head {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--lblue); text-transform: uppercase;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-mid);
}
.nav-mega-link {
  display: block; font-size: 13px; color: var(--gray-dk);
  padding: 5px 0; transition: var(--trans);
}
.nav-mega-link:hover { color: var(--blue); padding-left: 4px; }
.nav-mega-ver { color: var(--lblue); font-weight: 600; margin-top: 4px; }
.nav-mega-divider { height: 1px; background: var(--gray-mid); margin: 10px 0; }
.nav-mega-cta {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--blue); padding: 8px 12px;
  background: var(--gray-bg); border-radius: var(--radius);
  transition: var(--trans);
}
.nav-mega-cta:hover { background: var(--gray-mid); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; border-radius: var(--radius);
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--blue); border-radius: 2px;
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Menú móvil global */
.mobile-menu {
  display: none; background: var(--white);
  border-top: 1px solid var(--gray-mid);
  padding: 8px 0 16px;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.mobile-menu.open { max-height: 600px; }
.mobile-nav { padding: 0 var(--pad-x); display: flex; flex-direction: column; gap: 2px; }
.mobile-link {
  display: block; padding: 10px 0; font-size: 14px;
  color: var(--gray-dk); border-bottom: 1px solid var(--gray-mid);
  font-weight: 500;
}
.mobile-section-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 0; font-size: 14px;
  color: var(--gray-dk); font-weight: 500;
  border-bottom: 1px solid var(--gray-mid); background: none;
}
.mobile-section-items { display: none; padding: 4px 0 8px; }
.mobile-section-items.open { display: block; }
.mobile-sublink {
  display: block; padding: 7px 12px; font-size: 13px;
  color: var(--blue);
}
.mobile-wa {
  display: flex; align-items: center; gap: 8px;
  background: var(--green-wa); color: var(--white);
  padding: 12px 16px; border-radius: var(--radius);
  font-weight: 700; font-size: 14px; margin-top: 12px;
}

/* ================================================================
   MENÚ CONTEXTUAL — nav-bio.php / nav-mat.php
   ================================================================ */
.ctx-header {
  background: var(--gray-head);
  border-bottom: 1px solid var(--gray-brd);
  position: sticky; top: 0; z-index: 200;
}
.ctx-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 0; gap: 16px;
}

/* Marca contextual */
.ctx-brand { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.ctx-logo-link { display: flex; align-items: center; }
.ctx-logo { height: 58px; width: auto; }
.ctx-sep {
  width: 1px; height: 28px;
  background: var(--gray-brd);
  margin: 0 14px;
}
.ctx-division {
  font-size: 14px; font-weight: 700;
  color: var(--blue); letter-spacing: .3px;
  transition: var(--trans);
}
.ctx-division:hover { color: var(--lblue); }

/* Nav secciones */
.ctx-nav { display: flex; align-items: center; gap: 2px; }
.ctx-link {
  font-size: 13px; font-weight: 500; color: var(--gray-dk);
  padding: 6px 12px; border-radius: var(--radius);
  transition: var(--trans); white-space: nowrap;
}
.ctx-link:hover, .ctx-link.active {
  color: var(--blue); background: rgba(20,64,134,.07);
}

/* Botón cotizar */
.btn-cotizar {
  display: flex; align-items: center; gap: 7px;
  background: var(--blue); color: var(--white);
  padding: 9px 18px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700;
  transition: var(--trans); flex-shrink: 0;
}
.btn-cotizar:hover { background: var(--navy); }

/* Hamburger contextual */
.ctx-hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.ctx-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--blue); border-radius: 2px; transition: var(--trans);
}

/* Móvil contextual */
.ctx-mobile {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--gray-mid);
  padding: 8px var(--pad-x) 16px; gap: 2px;
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.ctx-mobile.open { max-height: 400px; }
.ctx-mobile-div {
  font-size: 13px; color: var(--lblue); font-weight: 700;
  padding: 8px 0; border-bottom: 1px solid var(--gray-mid);
}
.ctx-mobile-link {
  display: block; padding: 9px 0; font-size: 14px;
  color: var(--gray-dk); border-bottom: 1px solid var(--gray-mid);
}
.ctx-mobile-cotizar {
  margin-top: 10px; width: 100%;
  background: var(--blue); color: var(--white);
  padding: 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
}

/* ================================================================
   SECCIONES COMUNES (páginas de producto)
   ================================================================ */

/* SEC HEAD */
.sec-head { text-align: center; margin-bottom: 44px; }
.eyebrow {
  font-size: 12px; color: var(--lblue); letter-spacing: 2.5px;
  font-weight: 700; margin-bottom: 10px; text-transform: uppercase;
  display: block;
}
.sec-head h2 { font-size: 30px; font-weight: 700; color: var(--blue); }
.sec-head p {
  font-size: 15px; color: var(--gray-txt);
  max-width: 640px; margin: 12px auto 0; line-height: 1.65;
}

/* HERO BANNER */
.hero-wrap { background: var(--gray-head); }
.hero-banner { position: relative; width: 100%; overflow: hidden; max-height: 650px; }
.hero-banner .banner-bg {
  width: 100%; height: 620px;
  object-fit: cover; object-position: 70% center; display: block;
}
.hero-banner-img-wrap { position: relative; }
.hero-banner-overlay {
  position: absolute; top: 0; left: 0; bottom: 0; width: 68%;
  background: linear-gradient(to right,
    rgba(232,234,240,.97) 0%,
    rgba(232,234,240,.97) 40%,
    rgba(232,234,240,.88) 62%,
    rgba(232,234,240,.4)  85%,
    rgba(232,234,240,0)   100%);
}
.hero-banner-text {
  position: absolute; top: 0; left: 0; bottom: 0; width: 60%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 60px 48px max(28px, calc((100% - 1200px)/2 + 28px));
}
.chip {
  display: inline-block;
  background: rgba(20,64,134,.1); color: var(--blue);
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  margin-bottom: 16px; border: 1px solid rgba(20,64,134,.25);
  width: fit-content;
}
.hero-h1 {
  font-size: 48px; font-weight: 700; color: var(--blue);
  line-height: 1.05; margin-bottom: 10px;
}
.hero-tag {
  font-size: 19px; color: #1a2a4a; font-style: italic;
  margin-bottom: 14px; line-height: 1.4;
}
.hero-desc {
  font-size: 15px; color: #2a3a5c;
  margin-bottom: 24px; line-height: 1.65; max-width: 520px;
}
.hero-btns {
  display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap;
}
.trust {
  display: flex; align-items: center; gap: 32px;
  padding-top: 16px; border-top: 1px solid rgba(20,64,134,.2);
}
.trust-label {
  font-size: 10px; color: var(--gray-dk);
  letter-spacing: 1.2px; font-weight: 700;
}
.trust-logo { height: 52px; mix-blend-mode: multiply; }

/* STATS BAR */
.stats-bg { background: var(--blue); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr); padding: 28px 0;
}
.stat { text-align: center; padding: 8px 16px; }
.stat:not(:first-child) { border-left: 1px solid rgba(255,255,255,.2); }
.stat-n { font-size: 26px; font-weight: 700; color: var(--lblue); margin-bottom: 4px; }
.stat-l { font-size: 13px; color: rgba(255,255,255,.88); }

/* CARDS 3 VENTAJAS */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg); padding: 28px 24px; text-align: center;
}
.card-icon {
  width: 56px; height: 56px; background: var(--blue);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 18px;
}
.card h3 { font-size: 17px; color: var(--blue); margin-bottom: 10px; font-weight: 700; }
.card p  { font-size: 14px; color: #4a5568; line-height: 1.65; }

/* FEATURE ROWS */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; margin-bottom: 60px;
}
.feature-row:last-child { margin-bottom: 0; }
.ft h3 { font-size: 22px; color: var(--blue); font-weight: 700; margin-bottom: 12px; }
.ft p  { font-size: 14px; color: #4a5568; line-height: 1.7; margin-bottom: 14px; }
.ft ul li {
  padding: 6px 0 6px 20px; position: relative;
  font-size: 14px; color: var(--black);
}
.ft ul li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 10px; height: 2px; background: var(--lblue);
}
.feat-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.feat-img img { width: 100%; height: auto; object-fit: contain; max-height: 420px; }

/* APPS GRID */
.apps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.app-card {
  background: var(--white); padding: 22px 18px;
  border-radius: 8px; border: 1px solid var(--gray-mid);
  border-top: 4px solid var(--blue); text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.app-card:hover { box-shadow: 0 6px 20px rgba(20,64,134,.12); transform: translateY(-2px); }
.app-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.app-icon svg { width: 44px; height: 44px; }
.app-title { font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.app-desc  { font-size: 13px; color: var(--gray-txt); line-height: 1.52; }

/* GALERÍA */
.gallery-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 10px; height: 460px;
}
.g-item { position: relative; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.04); }
.g-large { grid-row: 1 / span 2; }
.g-ov {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(10,20,60,.90) 0%, transparent 100%);
  padding: 14px; pointer-events: none;
}
.g-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.g-tech  { font-size: 12px; color: var(--lblue); font-weight: 700; }

/* SPECS */
.specs-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.specs-col { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-mid); overflow: hidden; }
.specs-col-title {
  background: var(--blue); color: var(--white);
  padding: 13px 20px; font-size: 13px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
}
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 20px; border-bottom: 1px solid #f0f3f8; gap: 12px;
}
.spec-row:last-child { border-bottom: none; }
.spec-l { font-size: 13px; color: var(--gray-txt); }
.spec-v { font-size: 13px; color: var(--blue); font-weight: 700; text-align: right; }

/* CATÁLOGO */
.cat-grid {
  display: grid; grid-template-columns: 1fr 1.8fr;
  gap: 48px; align-items: center;
}
.cat-cover-wrap { position: relative; display: flex; justify-content: center; }
.cat-cover-shadow {
  position: absolute; bottom: -8px; left: 8px; right: -8px; top: 8px;
  background: rgba(20,64,134,.18); border-radius: 4px;
}
.cat-cover-img { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 12px 40px rgba(20,64,134,.25); }
.cat-cover-img img { width: 100%; display: block; }
.cat-cover-spine {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 6px; background: var(--blue);
}
.cat-badge {
  position: absolute; top: -10px; right: -10px;
  background: var(--blue); color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(20,64,134,.35);
}
.cat-meta { display: flex; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.cat-meta-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-txt); }
.cat-note { font-size: 12px; color: #8b96a8; margin-top: 14px; font-style: italic; }

/* CTA */
.cta-inner { padding: 64px 0; text-align: center; color: var(--white); }
.cta-inner h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.cta-inner p  {
  font-size: 15px; color: rgba(255,255,255,.88);
  max-width: 520px; margin: 0 auto 28px; line-height: 1.65;
}
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* MODAL COTIZACIÓN */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,20,50,.65); z-index: 10000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 540px;
  box-shadow: 0 20px 60px rgba(10,20,50,.3); overflow: hidden;
}
.modal-header {
  background: var(--blue); padding: 20px 26px;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { color: var(--white); font-size: 17px; font-weight: 700; margin: 0; }
.modal-close { background: none; border: none; color: rgba(255,255,255,.8); font-size: 28px; cursor: pointer; line-height: 1; }
.modal-body { padding: 24px 26px 10px; }
.modal-sub { font-size: 14px; color: var(--gray-txt); margin-bottom: 18px; }
.form-2col { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-bottom: 14px; }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.fg select, .fg input, .fg textarea {
  width: 100%; border: 1.5px solid var(--gray-brd); border-radius: var(--radius);
  padding: 10px 12px; font-size: 14px; font-family: var(--font);
  color: var(--black); outline: none; background: #fafbfd; transition: border-color .2s;
}
.fg select:focus, .fg input:focus, .fg textarea:focus {
  border-color: var(--blue); background: var(--white);
}
.fg textarea { resize: vertical; min-height: 88px; }
.modal-footer { padding: 0 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.modal-sep { display: flex; align-items: center; gap: 10px; color: #8b96a8; font-size: 13px; }
.modal-sep::before, .modal-sep::after { content: ""; flex: 1; height: 1px; background: var(--gray-mid); }
.form-success { display: none; text-align: center; padding: 36px 24px; }
.form-success h4 { color: var(--blue); font-size: 18px; margin: 16px 0 8px; }
.form-success p  { color: var(--gray-txt); font-size: 14px; }

/* MODAL GALERÍA */
.gal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(5,12,35,.88); z-index: 20000;
  align-items: center; justify-content: center; padding: 20px; cursor: zoom-out;
}
.gal-overlay.open { display: flex; }
.gal-wrap { position: relative; max-width: 860px; width: 100%; }
.gal-modal {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; cursor: default; max-height: 90vh;
  display: flex; flex-direction: column;
}
.gal-modal img { width: 100%; max-height: 62vh; object-fit: contain; background: #0a0f20; }
.gal-modal-info { padding: 18px 24px; }
.gal-modal-title { font-size: 17px; font-weight: 700; color: var(--blue); margin-bottom: 3px; }
.gal-modal-tech  { font-size: 13px; color: var(--lblue); font-weight: 700; margin-bottom: 8px; }
.gal-modal-desc  { font-size: 14px; color: #4a5568; line-height: 1.65; }
.gal-close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,.15); border: none; color: var(--white);
  font-size: 28px; cursor: pointer; border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--gray-head); padding: 48px 0 22px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1.5fr 1.2fr 1.3fr;
  gap: 36px; margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo  { height: 64px; width: auto; }
.footer-brand-name { color: var(--blue); font-weight: 700; font-size: 13px; }
.footer-tagline { font-size: 13px; color: #4a5568; line-height: 1.6; margin-bottom: 16px; }
.footer-badge { margin-top: 10px; }
.footer-zeiss { height: 70px; width: auto; }

.footer-nav-col { display: flex; flex-direction: column; gap: 20px; }
.footer-nav-group { display: flex; flex-direction: column; gap: 2px; }
.footer-h5 {
  color: var(--blue); font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px;
}
.footer-link { font-size: 13px; color: #4a5568; line-height: 1.9; transition: color .15s; }
.footer-link:hover { color: var(--blue); }
.footer-wa { color: var(--green-wa) !important; font-weight: 700; }

.footer-contact-col { display: flex; flex-direction: column; gap: 4px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #4a5568;
}
.footer-marcas { margin-top: 16px; }
.footer-marca-list { font-size: 13px; color: #4a5568; }

.footer-bottom {
  padding-top: 18px; border-top: 1px solid var(--gray-brd);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #6b7a99; flex-wrap: wrap; gap: 8px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) and (min-width: 601px) {
  .hero-banner .banner-bg { height: 520px; object-position: 72% center; }
  .hero-banner-overlay { width: 72%; }
  .hero-banner-text { width: 66%; padding: 36px 24px 36px 28px; }
  .hero-h1 { font-size: 32px; }
  .hero-tag { font-size: 16px; }
  .trust-logo { height: 40px; }
}

@media (max-width: 900px) {
  :root { --pad-x: 18px; }
  .header-inner, .ctx-inner { flex-wrap: wrap; }
  .site-nav, .ctx-nav { display: none; }
  .hamburger, .ctx-hamburger { display: flex; }
  .mobile-menu { display: flex; flex-direction: column; }
  .ctx-mobile { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:not(:first-child) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.2); }
  .cards-3, .apps-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr !important; gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .g-large { grid-row: auto; grid-column: 1 / span 2; aspect-ratio: 16/9; }
  .g-item { aspect-ratio: 4/3; }
  .specs-wrap, .cat-grid { grid-template-columns: 1fr; }
  .section, .section-gray { padding: 44px 0; }
  .cta-inner { padding: 44px 0; }
  .feature-row { margin-bottom: 36px !important; }
  .form-2col { grid-template-columns: 1fr; }
  .nav-mega { display: none !important; }
}

@media (max-width: 600px) {
  .hero-banner { display: flex; flex-direction: column; }
  .hero-banner-img-wrap { position: relative; height: 240px; overflow: hidden; }
  .hero-banner .banner-bg {
    position: absolute; width: 180%; height: auto;
    top: -10%; right: -5%; max-width: none; object-fit: unset;
  }
  .hero-banner-overlay { display: none; }
  .hero-banner-text {
    position: relative; width: 100%; background: var(--white);
    padding: 26px 22px 30px; border-top: 3px solid var(--blue);
  }
  .hero-h1 { font-size: 26px; }
  .hero-tag { font-size: 15px; }
  .hero-desc { font-size: 13px; max-width: 100%; }
  .chip { font-size: 11px; }
  .trust { flex-wrap: wrap; gap: 10px; }
  .trust-label { font-size: 9px; }
  .trust-logo { height: 32px; }
}

@media (max-width: 560px) {
  .hero-h1 { font-size: 24px; }
  .cards-3, .apps-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-large { grid-column: auto; aspect-ratio: 4/3; }
  .cta-inner h2 { font-size: 22px; }
  .wa-float .wa-lbl { display: none; }
  .wa-float { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn-nav-wa .wa-lbl { display: none; }
}

/* ================================================================
   HOMEPAGE — estilos específicos
   ================================================================ */

/* HERO HOME */
.home-hero {
  position: relative; overflow: hidden;
  min-height: 620px; display: flex; align-items: center;
}
.home-hero-bg { position: absolute; inset: 0; }
.home-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(6,39,90,.92) 0%,
    rgba(6,39,90,.85) 35%,
    rgba(6,39,90,.5)  65%,
    rgba(6,39,90,.15) 100%);
}
.home-hero-inner { position: relative; z-index: 1; padding: 64px 0; }
.home-hero-content { max-width: 620px; }
.home-chip {
  display: inline-block; background: rgba(255,255,255,.15);
  color: var(--gold); padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 20px; border: 1px solid rgba(201,168,76,.4);
}
.home-h1 {
  font-size: 44px; font-weight: 700; color: var(--white);
  line-height: 1.1; margin-bottom: 18px;
}
.home-hero-desc {
  font-size: 16px; color: rgba(255,255,255,.88);
  line-height: 1.7; margin-bottom: 28px; max-width: 540px;
}
.home-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.home-hero-trust {
  display: flex; align-items: center; gap: 28px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2);
  flex-wrap: wrap;
}
.home-trust-zeiss { height: 44px; width: auto; }
.home-trust-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.home-trust-stat { display: flex; flex-direction: column; }
.home-trust-stat strong { font-size: 18px; color: var(--white); font-weight: 700; }
.home-trust-stat span  { font-size: 11px; color: rgba(255,255,255,.7); letter-spacing: .5px; }

/* SECTORES */
.home-sectores { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-sector-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-mid);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.home-sector-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.home-sector-img-wrap { position: relative; height: 220px; overflow: hidden; }
.home-sector-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-sector-card:hover .home-sector-img-wrap img { transform: scale(1.04); }
.home-sector-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; color: var(--white);
}
.home-sector-badge--bio { background: var(--blue); }
.home-sector-badge--mat { background: var(--navy); }
.home-sector-body { padding: 24px; }
.home-sector-body h3 { font-size: 20px; color: var(--blue); font-weight: 700; margin-bottom: 14px; }
.home-sector-list { margin-bottom: 20px; }
.home-sector-list li {
  font-size: 14px; color: #4a5568; padding: 5px 0 5px 18px;
  position: relative; border-bottom: 1px solid var(--gray-mid);
}
.home-sector-list li:last-child { border-bottom: none; }
.home-sector-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 8px; height: 2px; background: var(--lblue);
}

/* SOLUCIONES 4 cards */
.home-soluciones { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.home-sol-card {
  background: var(--white); border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; transition: var(--trans);
  border-top: 4px solid var(--blue);
}
.home-sol-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.home-sol-icon {
  width: 64px; height: 64px; background: var(--blue);
  border-radius: 14px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px;
}
.home-sol-card h3 { font-size: 17px; color: var(--blue); font-weight: 700; margin-bottom: 10px; }
.home-sol-card p  { font-size: 13px; color: #4a5568; line-height: 1.6; margin-bottom: 16px; }
.home-sol-marca { display: flex; justify-content: center; align-items: center; }
.home-sol-logo  { height: 28px; }
.home-sol-marca-txt { font-size: 13px; font-weight: 700; color: var(--gray-txt); letter-spacing: 1px; }

/* PRODUCTOS */
.home-productos-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.home-prod-group { margin-bottom: 20px; }
.home-prod-group-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 2px solid var(--gray-mid);
}
.home-prod-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.home-prod-dot--bio { background: var(--lblue); }
.home-prod-dot--mat { background: var(--navy); }
.home-prod-dot--srv { background: var(--gold); }
.home-prod-item {
  display: block; font-size: 13px; color: #4a5568;
  padding: 6px 0 6px 12px; border-bottom: 1px solid var(--gray-mid);
  transition: var(--trans);
  position: relative;
}
.home-prod-item::before {
  content: "→"; position: absolute; left: 0;
  color: var(--lblue); font-size: 11px; opacity: 0;
  transition: opacity .15s;
}
.home-prod-item:hover { color: var(--blue); padding-left: 18px; }
.home-prod-item:hover::before { opacity: 1; }
.home-prod-cats { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.home-productos-img { position: sticky; top: 100px; }
.home-productos-img img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); object-fit: cover;
}
.home-marcas-strip {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--gray-bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-top: -4px;
}
.home-marca-logo { height: 28px; }
.home-marca-sep  { color: var(--gray-brd); font-size: 18px; }
.home-marca-txt  { font-size: 13px; font-weight: 700; color: var(--gray-txt); }

/* TESTIMONIOS */
.home-testimonios { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.home-test-card {
  background: var(--white); border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg); padding: 24px 20px;
}
.home-test-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; }
.home-test-txt   { font-size: 13px; color: #4a5568; line-height: 1.65; margin-bottom: 18px; font-style: italic; }
.home-test-author { display: flex; align-items: center; gap: 12px; }
.home-test-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.home-test-name { font-size: 13px; font-weight: 700; color: var(--blue); }
.home-test-role { font-size: 11px; color: var(--gray-txt); }

/* BLOG */
.home-blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.home-blog-card {
  background: var(--white); border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--trans);
}
.home-blog-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.home-blog-img { position: relative; height: 180px; overflow: hidden; }
.home-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-blog-card:hover .home-blog-img img { transform: scale(1.04); }
.home-blog-cat {
  position: absolute; top: 12px; left: 12px;
  background: var(--blue); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px;
}
.home-blog-body { padding: 20px; }
.home-blog-title { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 8px; line-height: 1.4; }
.home-blog-desc  { font-size: 13px; color: #4a5568; line-height: 1.6; margin-bottom: 14px; }
.home-blog-link  { font-size: 13px; color: var(--lblue); font-weight: 700; transition: var(--trans); }
.home-blog-link:hover { color: var(--blue); }

/* CONTACTO */
.home-contacto-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.home-contacto-info h2 { font-size: 28px; color: var(--blue); font-weight: 700; margin: 10px 0 14px; line-height: 1.25; }
.home-contacto-info p  { font-size: 15px; color: #4a5568; line-height: 1.65; margin-bottom: 24px; }
.home-contacto-datos { display: flex; flex-direction: column; gap: 12px; }
.home-contacto-item  { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #4a5568; }
.home-contacto-link  { color: var(--blue); font-weight: 600; transition: var(--trans); }
.home-contacto-link:hover { color: var(--lblue); }
.home-contacto-wa    { color: var(--green-wa) !important; }
.home-contacto-form {
  background: var(--white); border: 1px solid var(--gray-mid);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* RESPONSIVE HOME */
@media (max-width: 900px) {
  .home-h1 { font-size: 30px; }
  .home-hero { min-height: 520px; }
  .home-sectores { grid-template-columns: 1fr; }
  .home-soluciones { grid-template-columns: 1fr 1fr; }
  .home-productos-wrap { grid-template-columns: 1fr; }
  .home-productos-img { position: static; }
  .home-testimonios { grid-template-columns: 1fr 1fr; }
  .home-blog-grid { grid-template-columns: 1fr 1fr; }
  .home-contacto-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-trust-stats { gap: 16px; }
}
@media (max-width: 560px) {
  .home-h1 { font-size: 24px; }
  .home-hero { min-height: 420px; }
  .home-soluciones { grid-template-columns: 1fr; }
  .home-testimonios { grid-template-columns: 1fr; }
  .home-blog-grid { grid-template-columns: 1fr; }
  .home-hero-trust { flex-direction: column; gap: 16px; }
}

/* HERO — texto más a la izquierda */
.home-hero-overlay {
  background: linear-gradient(to right,
    rgba(6,39,90,.95) 0%,
    rgba(6,39,90,.90) 30%,
    rgba(6,39,90,.55) 58%,
    rgba(6,39,90,.10) 100%) !important;
}
.home-hero-inner { padding-left: 0 !important; }
.home-hero-content { max-width: 520px !important; }

/* ÍCONOS PNG para sección Qué Hacemos */
.home-sol-icon-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 1px solid var(--gray-mid);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  background: var(--white);
  padding: 12px;
}
.home-sol-icon-img img {
  width: 100%; height: 100%;
  object-fit: contain;
}
/* Ocultar el ícono SVG azul anterior si queda alguno */
.home-sol-card .home-sol-icon { display: none; }
