/* =========================================================
   BIOSEP — biosep.mx (bienvenida / enrutador)
   Reskin adaptado al diseño actualmente en vivo en biosep.mx:
   tipografía Roboto (títulos) + DM Sans (cuerpo) + Nunito (nav/footer)
   + Inter (botones), azul de marca #005087, fondo blanco limpio.
   Hoja de estilos propia de index.html — no compartida con las
   páginas legales (que usan css/styles.css).
   ========================================================= */

:root {
  --color-b1: #005087; /* azul de marca — también el azul del botón "Unirme" en vivo */
  --color-b2: #0096c1;
  --color-b3: #00e4db;
  --color-alt1: #0066f9;
  --color-alt2: #08dcff;

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-border: #e6e6e6;

  --font-heading: "Roboto", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-nav: "Nunito", var(--font-body);
  --font-button: "Inter", var(--font-body);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --content-max-width: 1120px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #101010;
    --color-surface: #171717;
    --color-text: #f3f3f3;
    --color-text-muted: #a8a8a8;
    --color-border: #2a2a2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-bg: #101010;
  --color-surface: #171717;
  --color-text: #f3f3f3;
  --color-text-muted: #a8a8a8;
  --color-border: #2a2a2a;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}
h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem);
}
p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
}
a {
  color: var(--color-b1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a {
    color: var(--color-alt2);
  }
}
:root[data-theme="dark"] a {
  color: var(--color-alt2);
}
.wrap {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 3px solid var(--color-b1);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- header ---------- */
header {
  padding-block: var(--space-6);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.wordmark {
  line-height: 0;
  display: inline-flex;
}
.wordmark img {
  height: 2rem;
  width: auto;
}
.logo-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light {
    display: none;
  }
  :root:not([data-theme="light"]) .logo-dark {
    display: block;
  }
}
:root[data-theme="dark"] .logo-light {
  display: none;
}
:root[data-theme="dark"] .logo-dark {
  display: block;
}
.lang-toggle {
  display: inline-flex;
  gap: var(--space-2);
  font-family: var(--font-nav);
}
.lang-toggle button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: var(--space-1) var(--space-2);
}
.lang-toggle button[aria-pressed="true"] {
  color: var(--color-text);
  font-weight: 700;
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
}
.hero h1 {
  max-width: 44rem;
  margin-inline: auto;
}
.hero .sub {
  max-width: 34rem;
  margin-inline: auto;
  font-size: 1.1rem;
}

/* ---------- gateway tiles ---------- */
.gateway {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  position: relative;
}
@media (min-width: 720px) {
  .gateway {
    grid-template-columns: 1fr 1fr;
  }
}
.tile {
  position: relative;
  display: block;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  min-height: 15rem;
  isolation: isolate;
}
.tile .dot-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image: radial-gradient(currentColor 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}
.tile.salud {
  background: linear-gradient(135deg, var(--color-b1), var(--color-b2));
}
.tile.grupo {
  background: linear-gradient(135deg, var(--color-alt1), var(--color-b1));
}
.tile h2 {
  color: #fff;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.tile .desc {
  color: rgba(255, 255, 255, 0.9);
  max-width: 24rem;
}
.tile .go {
  display: inline-block;
  margin-top: var(--space-4);
  font-family: var(--font-button);
  font-weight: 600;
}
.fork-badge {
  display: none;
}
@media (min-width: 720px) {
  .fork-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-family: var(--font-nav);
    font-weight: 700;
    color: var(--color-text-muted);
    z-index: 2;
  }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-button);
  font-weight: 600;
  text-decoration: none;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-pill);
  background: var(--color-b1);
  color: #fff;
}
.btn:hover {
  background: var(--color-alt1);
}

/* ---------- nota ---------- */
.note {
  text-align: center;
  font-family: var(--font-body);
}
.note a {
  font-weight: 600;
}

/* ---------- footer ---------- */
footer {
  padding-block: var(--space-12) var(--space-8);
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.footer-links-label {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-4);
}
footer nav a {
  font-family: var(--font-nav);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}
footer nav a:hover {
  text-decoration: underline;
}
footer .rights {
  font-size: 0.85rem;
  margin: 0;
}
