/* G-Strata Instruments · sistema "liquid glass" común a todo el sitio
   (inicio, SEMq-1, G-SID, Ciencia y Validación, Reconocimiento y Ferias).
   Se carga al final de cada página. Botones de cristal que sobresalen y se tiñen al tocarlos,
   paneles esmerilados tipo dashboard que se elevan, y un menú de pestañas idéntico en todas las páginas.
   Sin saturate, sin brillos animados y sin halos cian. */
html, body { margin: 0; }
:root {
  --gi-blue: #2e67b1;          /* azul G-Strata Instruments */
  --gi-blue-hi: #4a86d6;
  --gi-blue-rgb: 46, 103, 177;
  --gi-lime: #9dc453;          /* verde G-SID */
  --gi-lime-hi: #b6db6c;
  --gi-lime-rgb: 157, 196, 83;
  --gi-silver: #d3dbe5;
  --gi-ink: #f3f6fa;
  --gi-ui: "Questrial", "Century Gothic", system-ui, sans-serif;
  --gi-display: "Exo 2", "Arial Narrow", system-ui, sans-serif;
  --gi-ease: cubic-bezier(.34, 1.56, .64, 1);   /* rebote suave, como el botón líquido */
  /* acento por página: azul por defecto, verde en G-SID */
  --acc: var(--gi-blue);
  --acc-hi: var(--gi-blue-hi);
  --acc-rgb: var(--gi-blue-rgb);
  --acc-ink: #ffffff;
  --top-h: 66px;
}
body.gi-lime {
  --acc: var(--gi-lime);
  --acc-hi: var(--gi-lime-hi);
  --acc-rgb: var(--gi-lime-rgb);
  --acc-ink: #15200a;
}

/* ---------- Botón líquido ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; clip-path: none;
  font-family: var(--gi-ui); font-weight: 700; font-size: calc(14px * var(--k, 1)); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--gi-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .07) 52%, rgba(255, 255, 255, .11) 100%);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .12),
    inset 0 -8px 14px -8px rgba(0, 0, 0, .4),
    0 1px 2px rgba(0, 0, 0, .35),
    0 10px 22px -10px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  cursor: pointer;
  transition: translate .45s var(--gi-ease), scale .45s var(--gi-ease), background .3s, color .3s, border-color .3s, box-shadow .35s;
}
.btn.primary {
  color: var(--acc-ink);
  background: linear-gradient(180deg, rgba(var(--acc-rgb), .92) 0%, rgba(var(--acc-rgb), .74) 55%, rgba(var(--acc-rgb), .86) 100%);
  border-color: rgba(255, 255, 255, .38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 -8px 14px -8px rgba(0, 0, 0, .3),
    0 1px 2px rgba(0, 0, 0, .35),
    0 12px 26px -12px rgba(var(--acc-rgb), .8);
}
.btn.sm { padding: 9px 16px; font-size: calc(12.5px * var(--k, 1)); }
@media (hover: hover) {
  .btn:hover {
    translate: 0 -4px; scale: 1.04;
    color: var(--acc-ink);
    background: linear-gradient(180deg, var(--acc-hi) 0%, var(--acc) 60%, var(--acc-hi) 100%);
    border-color: rgba(255, 255, 255, .5);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .7),
      inset 0 -10px 16px -10px rgba(0, 0, 0, .3),
      0 4px 8px rgba(0, 0, 0, .3),
      0 20px 36px -14px rgba(var(--acc-rgb), .85);
  }
  .btn.primary:hover { background: linear-gradient(180deg, #fff 0%, var(--acc-hi) 30%, var(--acc) 100%); }
}
.btn:active { translate: 0 -1px; scale: .97; color: var(--acc-ink); background: linear-gradient(180deg, var(--acc-hi), var(--acc)); transition-duration: .12s; }
.btn:focus-visible { outline: 2px solid var(--acc-hi); outline-offset: 3px; }
/* variantes de color fijas para usar en cualquier página */
.btn.blue { --acc: var(--gi-blue); --acc-hi: var(--gi-blue-hi); --acc-rgb: var(--gi-blue-rgb); --acc-ink: #fff; }
.btn.lime { --acc: var(--gi-lime); --acc-hi: var(--gi-lime-hi); --acc-rgb: var(--gi-lime-rgb); --acc-ink: #15200a; }

/* ---------- Paneles de cristal tipo dashboard ---------- */
.glass, .gcard {
  background: linear-gradient(160deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .045) 60%, rgba(255, 255, 255, .06) 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 40px -22px rgba(0, 0, 0, .75);
}
.gcard { position: relative; border-radius: 22px; }
/* tarjetas que se elevan al pasar el cursor (como las del dashboard) */
.lift, .gcard,
.outs li.glass, .feats li.glass, .part.glass, .x3d, .semi, .sector,
.paper, .vcard, .pgroup, .mines li.glass, .case .ph, .ev .txt,
.rail article, .gsid-card {
  transition: translate .45s var(--gi-ease), box-shadow .35s, border-color .35s, background .35s;
}
@media (hover: hover) {
  .lift:hover, .gcard:hover,
  .outs li.glass:hover, .feats li.glass:hover, .part.glass:hover, .x3d:hover, .semi:hover, .sector:hover,
  .paper:hover, .vcard:hover, .pgroup:hover, .mines li.glass:hover, .case .ph:hover, .ev .txt:hover,
  .rail article:hover, .gsid-card:hover {
    translate: 0 -6px;
    border-color: rgba(var(--acc-rgb), .55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 28px 50px -22px rgba(0, 0, 0, .85), 0 0 0 1px rgba(var(--acc-rgb), .18);
  }
}
.gcard.static:hover { translate: none; }

/* ---------- Barra superior común: logo + pestañas + llamada ---------- */
.gi-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding: 10px 0; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .3s; }
.gi-top.scrolled { background: linear-gradient(180deg, rgba(4, 9, 18, .82), rgba(4, 9, 18, .35) 75%, rgba(4, 9, 18, 0)); }
/* medidas fijas en px: la barra es idéntica en todas las páginas y en cualquier ancho de pantalla */
.gi-top .wrap { box-sizing: border-box; display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.gi-top .brand { flex: none; margin-right: auto; }
.gi-top .brand img { height: 30px; width: auto; display: block; }
.gi-top nav { font-family: var(--gi-ui); }
.gi-top .tabs { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; }
.gi-top .tabs b { font-family: var(--gi-display); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 0 10px 0 12px; white-space: nowrap; }
.gi-top .tabs a {
  position: relative; text-decoration: none; white-space: nowrap; color: rgba(243, 246, 250, .84);
  font-size: 13.5px; line-height: 1.2; letter-spacing: .02em; padding: 8px 13px; border-radius: 999px; border: 1px solid transparent;
  transition: translate .4s var(--gi-ease), background .25s, color .25s, border-color .25s, box-shadow .3s;
}
.gi-top .tabs a small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: rgba(var(--gi-lime-rgb), .2); color: var(--gi-lime-hi); }
@media (hover: hover) {
  .gi-top .tabs a:hover {
    translate: 0 -2px; color: #fff; border-color: rgba(255, 255, 255, .28);
    background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 18px -10px rgba(0, 0, 0, .8);
  }
}
.gi-top .tabs a.on {
  color: var(--acc-ink); border-color: rgba(255, 255, 255, .4);
  background: linear-gradient(180deg, var(--acc-hi), var(--acc));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 20px -10px rgba(var(--acc-rgb), .9);
}
.gi-top .tabs a.on small { background: rgba(0, 0, 0, .18); color: inherit; }
.gi-top .tabs a.mob { display: none; }
.gi-top .btn { flex: none; font-size: 12.5px; padding: 10px 16px; letter-spacing: .07em; }
.gi-top .home::before { content: "\2190"; font-size: 15px; line-height: 1; letter-spacing: 0; }
.gi-top .menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; color: var(--gi-ink); cursor: pointer; font-size: 18px; align-items: center; justify-content: center; flex: none; }
.gi-top .trace { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.gi-top .trace i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc-hi)); box-shadow: none; }
@media (max-width: 1440px) { .gi-top .tabs a { padding: 8px 10px; font-size: 13px; } .gi-top .wrap { gap: 10px; } }
@media (max-width: 1300px) { .gi-top .tabs a { padding: 7px 8px; font-size: 12.5px; } .gi-top .btn { padding: 9px 13px; font-size: 12px; } }
@media (max-width: 1180px) {
  .gi-top .menu-btn { display: inline-flex; }
  .gi-top .home { display: none; }
  .gi-top.open .panel { display: flex; }
  .gi-top .panel { display: none; position: absolute; top: calc(100% + 4px); left: 16px; right: 16px; flex-direction: column; padding: 12px; border-radius: 22px; background: rgba(8, 15, 28, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); max-height: calc(100svh - 90px); overflow-y: auto; }
  .gi-top .panel .tabs { flex-direction: column; align-items: stretch; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gi-top .panel .tabs b { padding: 6px 14px 8px; }
  .gi-top .panel a { font-size: 16px; padding: 12px 14px; }
  .gi-top .tabs a.mob { display: block; margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0 0 14px 14px; }
}
@media (min-width: 1181px) { .gi-top .panel { display: contents; } }
@media (max-width: 520px) { .gi-top .wrap { gap: 8px; } .gi-top .btn { padding: 8px 12px; font-size: 11px; letter-spacing: .04em; } .gi-top .brand img { height: 24px; } .gi-top .menu-btn { width: 42px; height: 42px; } }

/* ---------- Pie común ---------- */
.gi-foot { padding: 46px 0; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(243, 246, 250, .66); font-size: calc(14px * var(--k, 1)); background: rgba(0, 0, 0, .2); }
.gi-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.gi-foot img { height: 34px; width: auto; }
.gi-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--gi-ui); font-size: calc(13.5px * var(--k, 1)); }
.gi-foot nav a { text-decoration: none; color: inherit; }
.gi-foot nav a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .btn, .lift, .gcard, .gi-top .tabs a { transition: background .2s, color .2s; }
  .btn:hover, .lift:hover, .gcard:hover { translate: none; scale: none; }
}
section[id], [id].sector { scroll-margin-top: calc(var(--top-h) + 12px); }
