/* ==========================================================================
   Human Cabs — sistema visual compartido (sacado de las láminas del PDF)
   Todas las pantallas del demo importan este archivo. No redefinir colores
   sueltos en cada módulo: usar estas variables.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Marca */
  --h-purple: #7B4FD0;        /* morado principal (títulos "Human", botones) */
  --h-purple-deep: #5A33A6;   /* hover / texto sobre lavanda */
  --h-purple-soft: #B9A3EA;   /* trazos, iconos secundarios */
  --h-lavender: #EFE8FB;      /* chips, fondos de ícono */
  --h-lavender-2: #F6F2FD;    /* paneles suaves */

  /* Superficies */
  --h-bg: #F8F6FB;            /* fondo general (casi blanco lila) */
  --h-card: #FFFFFF;
  --h-border: #ECE6F5;
  --h-shadow: 0 10px 30px -12px rgba(91, 51, 166, .18), 0 2px 6px rgba(91, 51, 166, .05);
  --h-shadow-lg: 0 30px 60px -20px rgba(91, 51, 166, .28);

  /* Texto */
  --h-ink: #2D2838;
  --h-ink-2: #5E5870;
  --h-muted: #9790A8;

  /* Estados de cabina (mapa) */
  --h-free: #34C26B;          /* disponible */
  --h-busy: #E5484D;          /* ocupada */
  --h-soon: #F2B840;          /* próxima a liberarse */

  /* Human Pulse (el punto que respira) */
  --h-pulse: #4CD46A;
  --h-pulse-glow: rgba(76, 212, 106, .35);
  --h-night: #120F1C;         /* fondo oscuro de pantalla de cabina */
  --h-night-2: #1E1830;

  /* Gradiente iridiscente de la Human Key y la pantalla de la cabina */
  --h-iris: linear-gradient(135deg, #E4D6F7 0%, #CDB6F0 35%, #EBD3EE 65%, #CFE0F6 100%);
  --h-iris-deep: linear-gradient(135deg, #8E6BE0 0%, #B48CE6 50%, #8FB4EE 100%);

  /* Forma */
  --h-r-sm: 10px;
  --h-r: 16px;
  --h-r-lg: 24px;
  --h-r-xl: 32px;

  --h-font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--h-font);
  color: var(--h-ink);
  background: var(--h-bg);
  -webkit-font-smoothing: antialiased;
}

/* Título con la palabra "Human" en morado, como en las láminas:
   <h1 class="h-title">Plataforma <b>Human</b></h1> */
.h-title { font-weight: 500; letter-spacing: -.02em; color: var(--h-ink); margin: 0; }
.h-title b, .h-accent { color: var(--h-purple); font-weight: 600; }
.h-rule { width: 64px; height: 3px; border-radius: 2px; background: var(--h-purple); opacity: .8; }

.h-card { background: var(--h-card); border: 1px solid var(--h-border); border-radius: var(--h-r-lg); box-shadow: var(--h-shadow); }
.h-soft { background: var(--h-lavender-2); border-radius: var(--h-r); }

.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--h-purple); color: #fff; font: 500 15px var(--h-font);
  cursor: pointer; transition: background .2s, transform .1s;
}
.h-btn:hover { background: var(--h-purple-deep); }
.h-btn:active { transform: scale(.98); }
.h-btn.ghost { background: var(--h-lavender); color: var(--h-purple-deep); }

.h-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--h-lavender); color: var(--h-purple-deep); font-size: 12px; font-weight: 500; }
.h-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.h-dot.free { background: var(--h-free); } .h-dot.busy { background: var(--h-busy); } .h-dot.soon { background: var(--h-soon); }

/* Ícono redondo de línea fina (fila de íconos bajo cada módulo en el PDF) */
.h-icon { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--h-border); background: #fff; display: grid; place-items: center; color: var(--h-purple); }
.h-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* Logo: <span class="h-logo"><img src="../shared/logo.svg"> human cabs.</span> */
.h-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--h-ink); font-weight: 400; font-size: 20px; letter-spacing: -.01em; text-decoration: none; }
.h-logo img { width: 30px; height: 30px; }

/* Pie de marca que cierra cada lámina */
.h-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 32px; background: var(--h-lavender-2); color: var(--h-purple-deep); font-size: 14px; }
.h-footer em { font-style: italic; color: var(--h-purple); }

/* El punto de Human Pulse que respira */
@keyframes h-breathe {
  0%, 100% { transform: scale(.86); box-shadow: 0 0 0 0 var(--h-pulse-glow), 0 0 40px 10px var(--h-pulse-glow); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(76,212,106,.08), 0 0 80px 30px var(--h-pulse-glow); }
}
.h-pulse { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #8BF09E, var(--h-pulse) 55%, #2FA64B); animation: h-breathe 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) { .h-pulse { animation: none; } }
