/* ═══════════════════════════════════════════════════════════════════════════
   BIOLOTEC DESIGN SYSTEM — v1.0
   ═══════════════════════════════════════════════════════════════════════════
   Sistema visual unificado para todas las páginas públicas del sitio.
   Construido a partir del lenguaje validado en las 5 landings de Mayo 2026.

   USO:
   1. <link rel="stylesheet" href="css/biolotec-system.css?v=1">
   2. Cargar las fuentes en <head>:
      <link rel="preconnect" href="https://fonts.googleapis.com">
      <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
      <link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap" rel="stylesheet">
   3. Cargar Font Awesome para íconos (ya está en producción)
   4. Cargar al final del body:
      <script src="js/biolotec-ui.js?v=1" defer></script>

   ESTRUCTURA DEL ARCHIVO:
   §1. TOKENS — variables CSS (colores, tipografía, espacios, sombras)
   §2. RESET — base reset y elementos HTML
   §3. UTILIDADES — helpers (container, eyebrow, etc.)
   §4. NAV — header global
   §5. BOTONES — sistema de botones
   §6. FORMULARIOS — inputs, selects, checks
   §7. CARDS — tarjetas (genéricas, sector, problema, caso, testimonio)
   §8. SECCIONES — hero patterns, sec light, sec dark
   §9. FOOTER — footer global
   §10. WHATSAPP FLOATING — botón fijo
   §11. ANIMACIONES — reveal, hover effects
   §12. RESPONSIVE — breakpoints
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════════
   §1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* —— PALETA VERDE (signature) —— */
  --bio-green-50:  #f0fdf4;
  --bio-green-100: #dcfce7;
  --bio-green-200: #bbf7d0;
  --bio-green-300: #86efac;
  --bio-green-400: #4ade80;
  --bio-green-500: #22c55e;  /* PRIMARY brand green */
  --bio-green-600: #16a34a;  /* hover/active green */
  --bio-green-700: #15803d;
  --bio-green-800: #166534;
  --bio-green-900: #14532d;

  /* —— FOREST (dark backgrounds) —— */
  --bio-forest:       #0a1f1a;  /* dark surfaces */
  --bio-forest-deep:  #051410;  /* footer, deepest */
  --bio-forest-soft:  #0f2a23;  /* hover on dark */

  /* —— GRAYS (text + paper) —— */
  --bio-ink:        #0a1f1a;
  --bio-ink-soft:   #374151;
  --bio-ink-mute:   #6b7280;
  --bio-ink-faint:  #9ca3af;
  --bio-paper:      #ffffff;
  --bio-paper-soft: #fafaf9;
  --bio-paper-warm: #f5f7f6;
  --bio-border:     #e5e7eb;
  --bio-border-soft: #f3f4f6;

  /* —— ACENTOS UTILITARIOS —— */
  --bio-amber:   #fbbf24;
  --bio-amber-deep: #78350f;
  --bio-red:     #dc2626;
  --bio-wa:      #25D366;  /* WhatsApp brand */

  /* —— TIPOGRAFÍA —— */
  --bio-font-display: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bio-font-body:    'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* —— ESCALA TIPOGRÁFICA fluida (clamp para ser responsivo) —— */
  --bio-text-xs:   12px;
  --bio-text-sm:   13px;
  --bio-text-base: 15px;
  --bio-text-md:   16px;
  --bio-text-lg:   17px;
  --bio-text-xl:   clamp(20px, 2vw, 22px);
  --bio-text-2xl:  clamp(22px, 2.4vw, 26px);
  --bio-text-3xl:  clamp(26px, 3vw, 32px);
  --bio-text-4xl:  clamp(30px, 3.5vw, 42px);
  --bio-text-5xl:  clamp(36px, 5vw, 56px);

  /* —— PESOS —— */
  --bio-fw-regular: 400;
  --bio-fw-medium:  500;
  --bio-fw-semi:    600;
  --bio-fw-bold:    700;
  --bio-fw-black:   800;

  /* —— LAYOUT —— */
  --bio-container: 1200px;
  --bio-container-wide: 1280px;
  --bio-container-narrow: 920px;
  --bio-gutter: 24px;

  /* —— ESPACIADOS —— */
  --bio-space-1:  4px;
  --bio-space-2:  8px;
  --bio-space-3:  12px;
  --bio-space-4:  16px;
  --bio-space-5:  20px;
  --bio-space-6:  24px;
  --bio-space-8:  32px;
  --bio-space-10: 40px;
  --bio-space-12: 48px;
  --bio-space-16: 64px;
  --bio-space-20: 80px;
  --bio-space-24: 96px;

  /* —— RADIOS —— */
  --bio-radius-xs: 4px;
  --bio-radius-sm: 8px;
  --bio-radius:    12px;
  --bio-radius-lg: 16px;
  --bio-radius-xl: 20px;
  --bio-radius-pill: 999px;

  /* —— SOMBRAS —— */
  --bio-shadow-xs: 0 1px 2px rgba(10,31,26,.05);
  --bio-shadow-sm: 0 2px 6px rgba(10,31,26,.07);
  --bio-shadow-md: 0 4px 16px rgba(10,31,26,.08);
  --bio-shadow-lg: 0 12px 40px rgba(10,31,26,.12);
  --bio-shadow-xl: 0 24px 60px rgba(10,31,26,.18);
  --bio-shadow-green:    0 10px 30px rgba(34,197,94,.35);
  --bio-shadow-green-lg: 0 16px 40px rgba(34,197,94,.45);
  --bio-shadow-wa:       0 10px 30px rgba(37,211,102,.45);

  /* —— TRANSICIONES —— */
  --bio-ease:        cubic-bezier(.2, .7, .2, 1);
  --bio-ease-out:    cubic-bezier(.25, .1, .25, 1);
  --bio-ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --bio-duration-fast:  .15s;
  --bio-duration:       .25s;
  --bio-duration-slow:  .5s;
  --bio-duration-slower: .8s;

  /* —— Z-INDEX SCALE —— */
  --bio-z-nav:      100;
  --bio-z-overlay:  900;
  --bio-z-modal:    950;
  --bio-z-float:    999;
  --bio-z-toast:    1000;
}


/* ═══════════════════════════════════════════════════════════════════════════
   §2. RESET + BASE
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--bio-font-body);
  font-size: var(--bio-text-md);
  line-height: 1.6;
  color: var(--bio-ink);
  background: var(--bio-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--bio-duration) var(--bio-ease); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bio-font-display);
  font-weight: var(--bio-fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bio-ink);
}
h1 { font-size: var(--bio-text-5xl); letter-spacing: -0.025em; }
h2 { font-size: var(--bio-text-4xl); }
h3 { font-size: var(--bio-text-2xl); }
h4 { font-size: var(--bio-text-xl); }

p { line-height: 1.6; color: var(--bio-ink-soft); }

/* Selección con color de marca */
::selection { background: var(--bio-green-500); color: white; }
::-moz-selection { background: var(--bio-green-500); color: white; }

/* Scroll-padding para que las anclas no queden tapadas por el nav fijo */
html { scroll-padding-top: 88px; }


/* ═══════════════════════════════════════════════════════════════════════════
   §3. UTILIDADES BASE
   ═══════════════════════════════════════════════════════════════════════════ */
.bio-container {
  max-width: var(--bio-container);
  margin: 0 auto;
  padding-left: var(--bio-gutter);
  padding-right: var(--bio-gutter);
}
.bio-container--wide   { max-width: var(--bio-container-wide); }
.bio-container--narrow { max-width: var(--bio-container-narrow); }

.bio-eyebrow {
  display: inline-block;
  font-family: var(--bio-font-body);
  font-size: var(--bio-text-xs);
  font-weight: var(--bio-fw-bold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bio-green-500);
}

.bio-accent       { color: var(--bio-green-500); font-style: normal; }
.bio-accent-light { color: var(--bio-green-400); font-style: normal; }

.bio-text-center  { text-align: center; }
.bio-hidden       { display: none !important; }
.bio-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   §4. NAV (header global, fijo)
   ═══════════════════════════════════════════════════════════════════════════ */
.bio-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--bio-z-nav);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--bio-duration) var(--bio-ease);
}
.bio-nav.bio-nav--scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--bio-shadow-sm);
}
/* Variante para hero oscuro: nav transparente al inicio */
.bio-nav--ontop {
  background: transparent;
  border-bottom-color: transparent;
}
.bio-nav--ontop .bio-nav__link,
.bio-nav--ontop .bio-nav__brand-main {
  color: white;
}
.bio-nav--ontop .bio-nav__brand-sub {
  color: rgba(255, 255, 255, .65);
}
.bio-nav--ontop .bio-nav__hamburger span {
  background: white;
}
.bio-nav--ontop.bio-nav--scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: rgba(0, 0, 0, .06);
}
.bio-nav--ontop.bio-nav--scrolled .bio-nav__link,
.bio-nav--ontop.bio-nav--scrolled .bio-nav__brand-main {
  color: var(--bio-ink);
}
.bio-nav--ontop.bio-nav--scrolled .bio-nav__brand-sub {
  color: var(--bio-ink-mute);
}
.bio-nav--ontop.bio-nav--scrolled .bio-nav__hamburger span {
  background: var(--bio-ink);
}

.bio-nav__inner {
  max-width: var(--bio-container-wide);
  margin: 0 auto;
  padding: 14px var(--bio-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bio-space-6);
}
.bio-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.bio-nav__logo {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bio-forest);
  color: var(--bio-green-400);
  display: grid; place-items: center;
  font-family: var(--bio-font-display);
  font-weight: var(--bio-fw-black);
  font-size: 22px;
  letter-spacing: -1px;
  transition: transform var(--bio-duration) var(--bio-ease-bounce);
  flex-shrink: 0;
}
.bio-nav__brand:hover .bio-nav__logo { transform: rotate(-4deg) scale(1.05); }

/* Logo real (imagen) — se usa en lugar del cuadrito "B" */
.bio-nav__logo-img {
  height: 44px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  transition: transform var(--bio-duration) var(--bio-ease-bounce);
  flex-shrink: 0;
}
.bio-nav__brand:hover .bio-nav__logo-img { transform: scale(1.04); }

/* Cuando el nav tiene logo-img, ocultamos el texto BIOLOTEC redundante */
.bio-nav__logo-img + .bio-nav__brand-text .bio-nav__brand-main { display: none; }
.bio-nav__logo-img + .bio-nav__brand-text .bio-nav__brand-sub {
  font-size: 11px;
  line-height: 1.35;
  margin-top: 0;
  color: var(--bio-ink-mute);
}

/* Logo en el footer oscuro: badge blanco para que se integre */
.bio-footer .bio-nav__logo-img {
  height: 50px;
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

/* Logo del footer (controla tamaño para que NO se vea gigante) */
.bio-footer__logo-img,
.footer-logo-img {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin-bottom: var(--bio-space-3);
}

.bio-nav__brand-text { line-height: 1.1; }
.bio-nav__brand-main {
  display: block;
  font-family: var(--bio-font-display);
  font-weight: var(--bio-fw-black);
  font-size: 16px;
  color: var(--bio-ink);
  letter-spacing: 0.5px;
}
.bio-nav__brand-sub {
  display: block;
  font-size: 10px;
  color: var(--bio-ink-mute);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.bio-nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: var(--bio-fw-medium);
}
.bio-nav__link {
  position: relative;
  color: var(--bio-ink-soft);
  padding: 6px 0;
}
.bio-nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--bio-green-500);
  transition: width var(--bio-duration) var(--bio-ease);
}
.bio-nav__link:hover { color: var(--bio-green-600); }
.bio-nav__link:hover::after,
.bio-nav__link.is-active::after { width: 100%; }
.bio-nav__link.is-active { color: var(--bio-green-600); }

/* Hamburger (móvil) */
.bio-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: calc(var(--bio-z-nav) + 2);
  position: relative;
  min-width: 44px;
  min-height: 44px;
}
.bio-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bio-ink);
  border-radius: 2px;
  transition: all var(--bio-duration) var(--bio-ease);
}
.bio-nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bio-nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.bio-nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer — z-index ENCIMA del nav para que nunca quede oculto */
.bio-nav__mobile {
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--bio-border);
  padding: var(--bio-space-4) var(--bio-gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--bio-shadow-lg);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--bio-duration) var(--bio-ease),
              opacity var(--bio-duration) var(--bio-ease),
              visibility 0s linear var(--bio-duration);
  z-index: calc(var(--bio-z-nav) + 1);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.bio-nav__mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform var(--bio-duration) var(--bio-ease),
              opacity var(--bio-duration) var(--bio-ease),
              visibility 0s linear 0s;
}
.bio-nav__mobile a {
  padding: 14px var(--bio-space-3);
  font-size: 15px;
  font-weight: var(--bio-fw-semi);
  color: var(--bio-ink);
  border-radius: var(--bio-radius-sm);
  transition: background var(--bio-duration) var(--bio-ease);
  text-decoration: none;
}
.bio-nav__mobile a:hover,
.bio-nav__mobile a:focus { background: var(--bio-green-50); color: var(--bio-green-700); }

/* Overlay (scrim) cuando el menú está abierto */
.bio-nav__overlay {
  position: fixed;
  inset: 70px 0 0 0;
  background: rgba(10,31,26,.4);
  z-index: var(--bio-z-nav);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--bio-duration) var(--bio-ease),
              visibility 0s linear var(--bio-duration);
  pointer-events: none;
}
.bio-nav__overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--bio-duration) var(--bio-ease),
              visibility 0s linear 0s;
}

/* Body lock cuando menu abierto */
body.bio-menu-open { overflow: hidden; }


/* Espaciador para que el contenido no quede debajo del nav fijo */
.bio-nav-spacer { height: 70px; }


/* ═══════════════════════════════════════════════════════════════════════════
   §5. BOTONES
   ═══════════════════════════════════════════════════════════════════════════ */
.bio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--bio-radius);
  font-family: var(--bio-font-body);
  font-weight: var(--bio-fw-bold);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--bio-duration) var(--bio-ease);
  white-space: nowrap;
  border: none;
  text-decoration: none;
}
.bio-btn svg, .bio-btn i { flex-shrink: 0; }

/* Primary verde (CTA principal) */
.bio-btn--primary {
  background: var(--bio-green-500);
  color: white;
  box-shadow: var(--bio-shadow-green);
}
.bio-btn--primary:hover {
  background: var(--bio-green-400);
  transform: translateY(-2px);
  box-shadow: var(--bio-shadow-green-lg);
  color: white;
}

/* Ghost (sobre fondos oscuros) */
.bio-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bio-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: white;
}

/* Outline (sobre fondos claros) */
.bio-btn--outline {
  background: white;
  color: var(--bio-green-700);
  border: 1.5px solid var(--bio-green-500);
}
.bio-btn--outline:hover {
  background: var(--bio-green-500);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--bio-shadow-green);
}

/* WhatsApp brand */
.bio-btn--wa {
  background: var(--bio-wa);
  color: white;
  box-shadow: var(--bio-shadow-wa);
}
.bio-btn--wa:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  color: white;
}

/* Tamaños */
.bio-btn--lg { padding: 16px 28px; font-size: 15px; }
.bio-btn--sm { padding: 10px 18px; font-size: 13px; }
.bio-btn--full { width: 100%; }


/* ═══════════════════════════════════════════════════════════════════════════
   §6. FORMULARIOS
   ═══════════════════════════════════════════════════════════════════════════ */
.bio-field { display: flex; flex-direction: column; }
.bio-field__label {
  font-size: 12px;
  font-weight: var(--bio-fw-bold);
  color: var(--bio-ink);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.bio-input,
.bio-select,
.bio-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--bio-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  color: var(--bio-ink);
  transition: all var(--bio-duration) var(--bio-ease);
}
.bio-input::placeholder,
.bio-textarea::placeholder { color: var(--bio-ink-faint); }

.bio-input:focus,
.bio-select:focus,
.bio-textarea:focus {
  outline: none;
  border-color: var(--bio-green-500);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}
.bio-textarea { min-height: 120px; resize: vertical; }

.bio-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) center;
  background-size: 10px;
  padding-right: 36px;
}

.bio-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bio-ink-soft);
  cursor: pointer;
  padding: 6px 0;
}
.bio-check input[type="checkbox"],
.bio-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--bio-green-500);
  cursor: pointer;
}


/* ═══════════════════════════════════════════════════════════════════════════
   §7. CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.bio-card {
  background: white;
  border-radius: var(--bio-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bio-border);
  transition: all var(--bio-duration-slow) var(--bio-ease);
  position: relative;
}
.bio-card--hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--bio-shadow-xl);
  border-color: var(--bio-green-300);
}
.bio-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bio-forest);
}
.bio-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--bio-duration-slower) var(--bio-ease);
}
.bio-card:hover .bio-card__image img { transform: scale(1.06); }
.bio-card__image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,31,26,0.5) 0%, transparent 50%);
}
.bio-card__body {
  padding: var(--bio-space-6);
  display: flex; flex-direction: column;
  gap: var(--bio-space-3);
}
.bio-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: var(--bio-radius-pill);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: var(--bio-fw-bold);
  color: var(--bio-green-700);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.bio-card__title { font-size: 20px; color: var(--bio-ink); }
.bio-card__desc { font-size: 14px; color: var(--bio-ink-mute); line-height: 1.55; }
.bio-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: var(--bio-fw-bold);
  color: var(--bio-green-600);
  margin-top: auto;
}
.bio-card:hover .bio-card__cta { gap: 12px; }

/* —— Problem card (grid de problemas/iconos pequeños) —— */
.bio-problem-card {
  text-align: center;
  padding: var(--bio-space-6) var(--bio-space-3);
  transition: transform var(--bio-duration) var(--bio-ease);
}
.bio-problem-card:hover { transform: translateY(-4px); }
.bio-problem-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--bio-space-4);
  border-radius: 14px;
  display: grid; place-items: center;
  background: white;
  color: var(--bio-green-600);
  box-shadow: var(--bio-shadow-sm);
  transition: all var(--bio-duration) var(--bio-ease);
}
.bio-problem-card:hover .bio-problem-card__icon {
  background: var(--bio-green-500);
  color: white;
  transform: scale(1.05);
  box-shadow: var(--bio-shadow-green);
}
.bio-problem-card h3 { font-size: 15px; font-weight: var(--bio-fw-bold); margin-bottom: 8px; }
.bio-problem-card p  { font-size: 13px; color: var(--bio-ink-mute); line-height: 1.5; }

/* —— Why-us / Feature card (sobre fondo oscuro generalmente) —— */
.bio-feature {
  text-align: center;
  padding: 0 var(--bio-space-2);
}
.bio-feature__icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--bio-space-4);
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(34, 197, 94, 0.1);
  color: var(--bio-green-400);
  border: 1px solid rgba(74, 222, 128, 0.18);
}
.bio-feature h3 {
  font-size: 14px;
  color: white;
  margin-bottom: 8px;
  line-height: 1.3;
}
.bio-feature p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

/* —— PRODUCT CARD — para el catálogo renderizado por cart.js
   IMPORTANTE: estas clases NO usan prefijo bio- porque son las
   que genera el JS legacy (`renderProductCard` en cart.js).
   No las renombro para no romper el catálogo. —— */
.product-card {
  background: white;
  border-radius: var(--bio-radius-lg);
  overflow: hidden;
  border: 1px solid var(--bio-border);
  transition: all var(--bio-duration-slow) var(--bio-ease);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer; /* Toda la card es clickeable */
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bio-shadow-xl);
  border-color: var(--bio-green-300);
}
.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bio-paper-warm);
  overflow: hidden;
  display: grid; place-items: center;
  padding: 20px;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--bio-duration-slower) var(--bio-ease);
  display: block;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }

.product-card-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 2;
  max-width: 60%;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--bio-radius-pill);
  font-size: 10px;
  font-weight: var(--bio-fw-bold);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}
.badge-green { background: var(--bio-green-500); color: white; }
.badge-star  { background: #fbbf24; color: #78350f; }
.badge-gold  { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }

.product-card-body {
  padding: var(--bio-space-5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: var(--bio-fw-bold);
  color: var(--bio-green-700);
  margin: 0;
}
.product-card-name {
  font-family: var(--bio-font-display);
  font-size: 17px;
  font-weight: var(--bio-fw-bold);
  color: var(--bio-ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}
.product-card-active {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--bio-ink-soft);
  line-height: 1.45;
  padding: 8px 10px;
  background: var(--bio-green-50);
  border-radius: var(--bio-radius-sm);
  border: 1px solid var(--bio-green-100);
}
.product-card-active-icon { flex-shrink: 0; font-size: 14px; }
.product-card-desc {
  font-size: 13px;
  color: var(--bio-ink-mute);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-footer {
  margin-top: auto;
  padding-top: var(--bio-space-3);
  border-top: 1px solid var(--bio-border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.product-card-price {
  font-family: var(--bio-font-display);
  font-size: 15px;
  font-weight: var(--bio-fw-bold);
  color: var(--bio-green-700);
  line-height: 1.1;
}

/* Botones que vienen del legacy cart.js (.btn .btn-primary .btn-outline)
   los re-estilamos para que se vean como bio-btn. */
.product-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px !important;
  border-radius: var(--bio-radius-sm);
  font-family: var(--bio-font-body);
  font-weight: var(--bio-fw-bold);
  font-size: 12.5px !important;
  line-height: 1;
  cursor: pointer;
  transition: all var(--bio-duration) var(--bio-ease);
  white-space: nowrap;
  border: none;
  text-decoration: none;
}
.product-card .btn-primary {
  background: var(--bio-green-500);
  color: white;
}
.product-card .btn-primary:hover {
  background: var(--bio-green-400);
  transform: translateY(-1px);
  box-shadow: var(--bio-shadow-green);
}
.product-card .btn-outline {
  background: white;
  color: var(--bio-green-700);
  border: 1.5px solid var(--bio-green-500);
}
.product-card .btn-outline:hover {
  background: var(--bio-green-500);
  color: white;
}

/* —— Cart toast (que genera cart.js cuando agregas un producto) —— */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: var(--bio-z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bio-green-500);
  color: white;
  padding: 12px 18px;
  border-radius: var(--bio-radius-sm);
  font-size: 13px;
  font-weight: var(--bio-fw-semi);
  box-shadow: var(--bio-shadow-lg);
  animation: bio-toast-in .3s var(--bio-ease);
}
@keyframes bio-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   §8. SECCIONES y PATTERNS
   ═══════════════════════════════════════════════════════════════════════════ */
.bio-sec       { padding: var(--bio-space-24) 0; }
.bio-sec--sm   { padding: var(--bio-space-16) 0; }
.bio-sec--light { background: var(--bio-paper); }
.bio-sec--soft  { background: var(--bio-paper-warm); }
.bio-sec--dark  { background: var(--bio-forest); color: white; }
.bio-sec--dark h2,
.bio-sec--dark h3,
.bio-sec--dark h4 { color: white; }
.bio-sec--dark .bio-accent { color: var(--bio-green-400); }
.bio-sec--dark p { color: rgba(255, 255, 255, 0.72); }

.bio-sec__head {
  text-align: center;
  margin-bottom: var(--bio-space-16);
}
.bio-sec__head h2 {
  font-size: var(--bio-text-4xl);
  margin-bottom: var(--bio-space-3);
}
.bio-sec__head p {
  color: var(--bio-ink-mute);
  font-size: var(--bio-text-lg);
  max-width: 640px;
  margin: 0 auto;
}
.bio-sec--dark .bio-sec__head p {
  color: rgba(255, 255, 255, 0.68);
}

/* Hero genérico (oscuro, dot-grid de fondo) */
.bio-hero {
  position: relative;
  background: var(--bio-forest);
  color: white;
  padding: 140px 0 70px;
  overflow: hidden;
}
.bio-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(34,197,94,.15), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(74,222,128,.08), transparent 60%);
  pointer-events: none;
}
.bio-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(74,222,128,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.bio-hero__inner { position: relative; }
.bio-hero h1 {
  font-size: var(--bio-text-5xl);
  color: white;
  margin: var(--bio-space-5) 0 var(--bio-space-4);
}
.bio-hero p.bio-lead {
  font-size: var(--bio-text-lg);
  color: #d1d5db;
  max-width: 600px;
  margin-bottom: var(--bio-space-8);
}

/* Promise band (la barra verde que aparece tras los problemas) */
.bio-promise {
  margin-top: var(--bio-space-16);
  padding: 22px 28px;
  background: linear-gradient(90deg, rgba(34,197,94,.06), rgba(34,197,94,.12), rgba(34,197,94,.06));
  border: 1px solid rgba(34,197,94,.2);
  border-radius: var(--bio-radius);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 15px;
  color: var(--bio-green-800);
  font-weight: var(--bio-fw-medium);
}


/* ═══════════════════════════════════════════════════════════════════════════
   §9. FOOTER (global, unificado)
   ═══════════════════════════════════════════════════════════════════════════ */
.bio-footer {
  background: var(--bio-forest-deep);
  color: rgba(255, 255, 255, 0.55);
  padding: var(--bio-space-16) 0 var(--bio-space-8);
}
.bio-footer__grid {
  max-width: var(--bio-container-wide);
  margin: 0 auto;
  padding: 0 var(--bio-gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--bio-space-12);
}
.bio-footer__brand h4,
.bio-footer__col h4 {
  color: white;
  font-size: 14px;
  font-weight: var(--bio-fw-bold);
  letter-spacing: 0.5px;
  margin-bottom: var(--bio-space-4);
  text-transform: uppercase;
}
.bio-footer__brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin-bottom: var(--bio-space-5);
  max-width: 320px;
}
.bio-footer__col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--bio-duration) var(--bio-ease);
}
.bio-footer__col a:hover { color: var(--bio-green-400); }
.bio-footer__social {
  display: flex;
  gap: 10px;
  margin-top: var(--bio-space-4);
}
.bio-footer__social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  display: grid; place-items: center;
  transition: all var(--bio-duration) var(--bio-ease);
}
.bio-footer__social a:hover {
  background: var(--bio-green-500);
  color: white;
  transform: translateY(-2px);
}
.bio-footer__bottom {
  max-width: var(--bio-container-wide);
  margin: var(--bio-space-12) auto 0;
  padding: var(--bio-space-5) var(--bio-gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.bio-footer__bottom strong { color: rgba(255, 255, 255, 0.7); }


/* ═══════════════════════════════════════════════════════════════════════════
   §10. WHATSAPP FLOATING (siempre visible)
   ═══════════════════════════════════════════════════════════════════════════ */
.bio-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--bio-z-float);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: bio-float-in .6s var(--bio-ease) forwards;
  animation-delay: 1s;
}
@keyframes bio-float-in {
  to { opacity: 1; transform: translateY(0); }
}
.bio-float__wa {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bio-wa);
  display: grid; place-items: center;
  box-shadow: var(--bio-shadow-wa);
  transition: all var(--bio-duration) var(--bio-ease);
}
.bio-float__wa:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(37,211,102,.55);
}
.bio-float__wa svg, .bio-float__wa i { width: 32px; height: 32px; color: white; font-size: 28px; }
.bio-float__wa::before,
.bio-float__wa::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--bio-wa);
  animation: bio-pulse 3s ease-out infinite;
  pointer-events: none;
}
.bio-float__wa::after { animation-delay: 1.5s; }
@keyframes bio-pulse {
  0%   { opacity: .8; transform: scale(1); }
  100% { opacity: 0;  transform: scale(1.8); }
}
.bio-float__tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--bio-forest);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: var(--bio-fw-semi);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--bio-duration) var(--bio-ease);
  box-shadow: var(--bio-shadow-md);
}
.bio-float__tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--bio-forest);
}
.bio-float__wa:hover .bio-float__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.bio-float__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--bio-forest);
  padding: 10px 16px;
  border-radius: var(--bio-radius-pill);
  font-weight: var(--bio-fw-bold);
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  border: 1px solid rgba(0,0,0,.05);
  transition: all var(--bio-duration) var(--bio-ease);
}
.bio-float__phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  color: var(--bio-green-600);
}


/* ═══════════════════════════════════════════════════════════════════════════
   §11. ANIMACIONES (scroll reveal + microinteracciones)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Scroll reveal: elementos invisibles hasta que entren al viewport.
   El JS añade .is-revealed via IntersectionObserver. */
.bio-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--bio-duration-slower) var(--bio-ease),
              transform var(--bio-duration-slower) var(--bio-ease);
  will-change: opacity, transform;
}
.bio-reveal.is-revealed { opacity: 1; transform: translateY(0); }

/* Variantes direccionales */
.bio-reveal--left  { transform: translateX(-40px); }
.bio-reveal--right { transform: translateX(40px); }
.bio-reveal--scale { transform: scale(.92); }
.bio-reveal--left.is-revealed,
.bio-reveal--right.is-revealed { transform: translateX(0); }
.bio-reveal--scale.is-revealed { transform: scale(1); }

/* Stagger: cuando un padre tiene .bio-stagger, sus hijos .bio-reveal
   se revelan con delay incremental */
.bio-stagger > .bio-reveal:nth-child(1)  { transition-delay: 0s; }
.bio-stagger > .bio-reveal:nth-child(2)  { transition-delay: .08s; }
.bio-stagger > .bio-reveal:nth-child(3)  { transition-delay: .16s; }
.bio-stagger > .bio-reveal:nth-child(4)  { transition-delay: .24s; }
.bio-stagger > .bio-reveal:nth-child(5)  { transition-delay: .32s; }
.bio-stagger > .bio-reveal:nth-child(6)  { transition-delay: .40s; }
.bio-stagger > .bio-reveal:nth-child(7)  { transition-delay: .48s; }
.bio-stagger > .bio-reveal:nth-child(8)  { transition-delay: .56s; }
.bio-stagger > .bio-reveal:nth-child(9)  { transition-delay: .64s; }

/* Counter animation hook (JS lo activa) */
.bio-counter { display: inline-block; }

/* —— Image fallback (cuando una imagen falla al cargar) —— */
.bio-img-fallback {
  width: 100%;
  height: 100%;
  min-height: 140px;
  background:
    linear-gradient(135deg, var(--bio-forest) 0%, var(--bio-green-700) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 20px;
  border-radius: inherit;
  position: relative;
  overflow: hidden;
}
.bio-img-fallback::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(74,222,128,.08) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .8;
}
.bio-img-fallback i {
  font-size: 36px;
  color: var(--bio-green-400);
  opacity: 0.45;
  position: relative;
}
.bio-img-fallback span {
  font-size: 12px;
  font-weight: 500;
  position: relative;
  max-width: 90%;
}

/* —— CTAs siempre clickables (defensive: nunca ocultos por reveal) —— */
.bio-btn {
  position: relative;
  z-index: 2;
}

/* Respeto a usuarios con preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .bio-reveal { opacity: 1; transform: none; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   §12. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bio-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--bio-space-8); }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 70px; }
  .bio-sec { padding: var(--bio-space-16) 0; }
  .bio-sec--sm { padding: var(--bio-space-12) 0; }
  .bio-sec__head { margin-bottom: var(--bio-space-10); }

  .bio-nav__menu { display: none; }
  .bio-nav__hamburger { display: flex; }
  .bio-nav__brand-sub { display: none; }
  .bio-nav__inner { padding: 12px var(--bio-gutter); }

  .bio-hero { padding: 110px 0 60px; }

  .bio-footer__grid { grid-template-columns: 1fr; gap: var(--bio-space-8); text-align: center; }
  .bio-footer__brand p { margin: 0 auto var(--bio-space-5); }
  .bio-footer__social { justify-content: center; }

  .bio-float { right: 14px; bottom: 14px; }
  .bio-float__wa { width: 54px; height: 54px; }
  .bio-float__wa svg, .bio-float__wa i { width: 28px; height: 28px; font-size: 24px; }
  .bio-float__phone { font-size: 12px; padding: 8px 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIN biolotec-system.css
   ═══════════════════════════════════════════════════════════════════════════ */
