/* ==========================================================================
   GlobalChat Design System — "Signal" v1
   Generado con UI/UX Pro Max (skill ui-ux-pro-max)
   Pattern : Product Demo + Features
   Style   : Minimalism & Swiss Style + Micro-interactions
   Type    : Poppins (display) / Open Sans (text)
   Paleta : azul corporativo #4fc3f7 → #2196F3 (webchat) + verde solo
           para estados en línea
   Modes   : dark (default) + light via body.light-mode
   Checklist aplicada: sin emojis como iconos (SVG inline), cursor-pointer,
   foco visible, contraste >= 4.5:1, prefers-reduced-motion, 375/768/1024/1440
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* paleta base (dark) */
  --bg:            #0B0F1E;
  --bg-soft:       #0F1428;
  --surface:       #141B33;
  --surface-2:     #1A2242;
  --surface-3:     #212B51;
  --border:        rgba(146, 163, 214, .16);
  --border-strong: rgba(146, 163, 214, .30);

  --text:          #EDF1FF;
  --text-soft:     #B7C0DE;
  --text-mute:     #8F9BBC;

  /* azul corporativo del webchat GlobalChat (#4fc3f7 → #2196F3)
     + verde reservado SOLO a estados "en línea" */
  --primary:       #4fc3f7;
  --primary-hover: #81d4fa;
  --primary-deep:  #2196F3;
  --on-primary:    #06141F;

  --accent:        #22C993;
  --accent-hover:  #3BD9A6;
  --on-accent:     #04140E;

  --warn:          #FFC24B;
  --danger:        #FF6B6B;

  --cta:           var(--primary);
  --cta-hover:     var(--primary-hover);

  /* tipografía */
  --font-display: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-text:    'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-xs: .75rem;  --fs-sm: .8125rem; --fs-base: 1rem;
  --fs-md: 1.0625rem; --fs-lg: 1.25rem; --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
  --fs-3xl: clamp(2.1rem, 1.4rem + 3.2vw, 3.25rem);

  /* espaciado (suizo: escala consistente) */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem; --s-9: 6rem;

  --radius-sm: 6px; --radius: 10px; --radius-lg: 16px; --radius-xl: 22px;
  --container: 1200px;
  --header-h: 66px;

  --shadow-1: 0 1px 2px rgba(4, 8, 24, .5);
  --shadow-2: 0 8px 28px rgba(4, 8, 24, .45);
  --shadow-3: 0 24px 60px rgba(4, 8, 24, .55);

  --dur-fast: 160ms;
  --dur: 220ms;
  --dur-slow: 380ms;
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* Bootstrap 5 variables (tematizado) */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-emphasis-color: var(--text);
  --bs-secondary-color: var(--text-mute);
  --bs-tertiary-color: var(--text-mute);
  --bs-tertiary-bg: var(--surface-2);
  --bs-modal-bg: var(--surface);
  --bs-modal-color: var(--text);
  --bs-modal-border-color: var(--border);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-hover);
}

body.light-mode {
  color-scheme: light;

  --bg:            #FFFFFF;
  --bg-soft:       #F7F9FE;
  --surface:       #FFFFFF;
  --surface-2:     #F1F5FD;
  --surface-3:     #E7EEFC;
  --border:        #E4ECFC;
  --border-strong: #C9D8F5;

  --text:          #0F172A;
  --text-soft:     #33415C;
  --text-mute:     #475569;

  --primary:       #1565C0;
  --primary-hover: #12529E;
  --primary-deep:  #0D47A1;
  --on-primary:    #FFFFFF;

  --accent:        #059669;
  --accent-hover:  #047857;
  --on-accent:     #FFFFFF;

  --warn:          #B45309;
  --danger:        #DC2626;

  --cta:           var(--primary);
  --cta-hover:     var(--primary-hover);

  --shadow-1: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-2: 0 8px 24px rgba(15, 23, 42, .10);
  --shadow-3: 0 24px 56px rgba(15, 23, 42, .14);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 78% -8%, rgba(79, 195, 247, .14), transparent 62%),
    radial-gradient(760px 420px at 4% 4%, rgba(33, 150, 243, .11), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.light-mode {
  background-image:
    radial-gradient(1100px 520px at 78% -8%, rgba(29, 111, 224, .09), transparent 62%),
    radial-gradient(760px 420px at 4% 4%, rgba(33, 150, 243, .08), transparent 60%);
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--text);
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

p { margin: 0 0 var(--s-4); color: var(--text-soft); }

a { color: var(--primary); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--primary-hover); }

strong, b { color: var(--text); font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(79, 195, 247, .34); color: var(--text); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.075rem;
  letter-spacing: -.02em;
  color: var(--text);
  flex: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; }
.brand__tag {
  font-family: var(--font-text);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
  border-radius: 999px;
  padding: .12rem .45rem;
}

.site-nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.site-nav a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: .5rem .7rem;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }

.header-cta { margin-left: var(--s-3); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   4. BOTONES (sobrescribe Bootstrap .btn)
   -------------------------------------------------------------------------- */
.btn, .menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-text);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn svg, .menu-btn svg { width: 18px; height: 18px; flex: none; }

.btn:active, .menu-btn:active { transform: translateY(1px); }

.btn-primary, .menu-btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.btn-primary:hover, .menu-btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--on-primary);
}

.btn-success {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn-success:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

.btn-info {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
}
.btn-info:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-hover); }

.btn-warning {
  background: transparent;
  color: var(--warn);
  border-color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 45%, transparent);
}
.btn-warning:hover { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }

.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.me-2 { margin-right: .5rem; }

/* --------------------------------------------------------------------------
   5. ESTRUCTURA / SECCIONES
   -------------------------------------------------------------------------- */
/* La animación de entrada es mejora progresiva: sin JS el contenido es visible */
.main-container {
  display: block;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
/* Keyframes en vez de una clase JS: si el script no llega a ejecutarse,
   la animación termina en opacity:1 y el contenido SIEMPRE se ve. */
html.js .main-container {
  animation: gcEnter var(--dur-slow) var(--ease) 40ms both;
}
@keyframes gcEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.section {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--s-8) clamp(1rem, 4vw, 2rem);
}
.section--tight { padding-block: var(--s-7); }
.section + .section { border-top: 1px solid var(--border); }

.section-head { max-width: 740px; margin-bottom: var(--s-6); }
.section-cta { margin: var(--s-5) 0 0; }
.link-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-5); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-text);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
}

.section-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--s-3);
}

.section-lead {
  font-size: var(--fs-md);
  color: var(--text-mute);
  margin: 0;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) var(--s-7);
}

.hero-copy { min-width: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s-4); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .7rem;
}
.badge--live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.badge--live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: livePulse 2.2s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-logo {
  width: 76px; height: 76px;
  object-fit: contain;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 10px;
  margin-bottom: var(--s-4);
  box-shadow: var(--shadow-2);
}
.logo-bounce { animation: none; }

.hero-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: var(--s-3);
}
.hero-title em {
  font-style: normal;
  color: var(--primary);
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: var(--s-3);
}

.hero-welcome {
  font-size: var(--fs-md);
  color: var(--text-soft);
  margin-bottom: var(--s-5);
  max-width: 54ch;
}

.hero-lead { font-size: var(--fs-md); color: var(--text-mute); max-width: 56ch; margin-bottom: var(--s-5); }

/* --- acceso rápido al chat ------------------------------------------------ */
.quick-chat-access {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-2);
  max-width: 540px;
}
.quick-chat-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .2rem;
}
.quick-chat-subtitle { font-size: .875rem; color: var(--text-mute); margin-bottom: var(--s-4); }

.quick-chat-form { margin: 0; }
.quick-chat-input-group { display: flex; gap: .6rem; }

.quick-chat-input, .wc-nick-input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: .78rem .95rem;
  min-height: 46px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
body.light-mode .quick-chat-input,
body.light-mode .wc-nick-input { background: #fff; }
.quick-chat-input::placeholder, .wc-nick-input::placeholder { color: var(--text-mute); }
.quick-chat-input:focus, .wc-nick-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent);
}

.quick-chat-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-text);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: .78rem 1.3rem;
  min-height: 46px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.quick-chat-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.quick-chat-btn:active { transform: translateY(1px); }
.quick-chat-btn svg { width: 18px; height: 18px; }

.quick-chat-hint { font-size: var(--fs-xs) !important; color: var(--text-mute) !important; margin: .6rem 0 0 !important; }
.quick-chat-alternative { font-size: var(--fs-sm); color: var(--text-mute); margin-top: var(--s-3); }
.quick-chat-alternative a { font-weight: 600; }

/* --- contadores ----------------------------------------------------------- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.stat { display: flex; flex-direction: column; gap: .1rem; }
.stat__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: .75rem; color: var(--text-mute); letter-spacing: .04em; text-transform: uppercase; }
.counter { display: none; }

/* --- mockup del producto -------------------------------------------------- */
.hero-preview { position: relative; }

.chat-mock {
  background: #0b111f;
  border: 1px solid rgba(79, 146, 246, .4);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3), 0 18px 44px -18px rgba(47, 111, 228, .5);
}
a.chat-mock__link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.chat-mock__link:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.chat-mock { transition: transform .25s ease, box-shadow .25s ease; }
.chat-mock:hover,
.chat-mock:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3), 0 0 0 2px #3b82f6;
}
.chat-mock__input input {
  flex: 1; min-width: 0;
  margin: 0;
  padding: .55rem .95rem;
  background: #101a30;
  border: 1px solid rgba(79, 146, 246, .4);
  border-radius: 999px;
  color: #e7eefc;
  font: inherit;
  font-size: .875rem;
  outline: none;
}
.chat-mock__input input::placeholder { color: #7e92b8; }
.chat-mock__input input:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }
.chat-mock__input button {
  margin-left: auto;
  flex: none;
  border: 0;
  padding: .55rem 1.1rem;
  background: #3b82f6;
  color: #fff;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  animation: heroCtaPulse 2.4s ease-in-out infinite;
}
.chat-mock__input button:hover { background: #2f6fe4; }
.chat-mock__choose {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: .55rem .9rem;
  border-top: 1px solid rgba(79, 146, 246, .3);
  background: #0d1526;
  font-size: .78rem;
}
.chat-mock__choose[hidden] { display: none; }
.chat-mock__choose-q { color: #8fa3c8; margin-right: auto; }
.chat-mock__choose-opt {
  border: 1px solid #3b82f6;
  background: transparent;
  color: #93c5fd;
  padding: .3em .75em;
  border-radius: 999px;
  font: inherit;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}
.chat-mock__choose-opt:hover { background: #3b82f6; color: #fff; }
.chat-mock__choose-x {
  border: 0; padding: 0 .2em;
  background: transparent;
  color: #8fa3c8;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.chat-mock__choose-x:hover { color: #fff; }
.msg__avatar--live { background: #4ade80; color: #052e16; }
.msg--enter { animation: heroMsgEnter .35s ease both; }
@keyframes heroMsgEnter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroCtaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.hero-toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 16px);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: .7em 1.1em;
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  font-size: .875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1000;
}
.hero-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .chat-mock__input button { animation: none; }
  .msg--enter { animation: none; }
  .chat-mock { transition: none; }
}
.chat-mock__bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  background: linear-gradient(135deg, #4c8dff 0%, #2f6fe4 100%);
  border-bottom: 0;
}
.chat-mock__dots { display: flex; gap: 5px; }
.chat-mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .45); display: block; }
.chat-mock__channel {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
}
.chat-mock__status {
  margin-left: auto;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  display: inline-flex; align-items: center; gap: .35rem;
}
.chat-mock__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.chat-mock__status.is-off { color: rgba(255, 255, 255, .7); }
.chat-mock__status.is-off::before { background: rgba(255, 255, 255, .5); }

/* ---- Lista de usuarios del mock (estilo del webchat moderno) ---- */
.chat-mock__split { display: flex; align-items: stretch; }

.chat-mock__users {
  flex: none;
  width: 158px;
  border-left: 1px solid rgba(79, 146, 246, .3);
  background:
    radial-gradient(180px 150px at 100% 0%, rgba(59, 130, 246, .18), transparent 72%),
    #080d1a;
  display: flex;
  flex-direction: column;
}
.chat-mock__users-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .4rem;
  padding: .55rem .7rem;
  background: rgba(16, 25, 46, .75);
  border-bottom: 1px solid rgba(79, 146, 246, .28);
}
.chat-mock__users-title {
  font-size: .625rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: #8fa3c8;
}
.chat-mock__users-count {
  font-size: .625rem; font-weight: 800;
  color: #052e16; background: #4ade80;
  border-radius: 999px; padding: .08rem .42rem;
  font-variant-numeric: tabular-nums;
}
.chat-mock__users-list {
  list-style: none; margin: 0;
  padding: .5rem .42rem;
  display: flex; flex-direction: column; gap: .1rem;
  overflow: hidden;
}
.cu {
  display: flex; align-items: center; gap: .42rem;
  padding: .2rem .3rem;
  border-radius: 8px;
}
.chat-mock__users-list li:hover { background: rgba(59, 130, 246, .16); }
.cu__av {
  position: relative;
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: .6rem; font-weight: 800;
  background: #0c4a6e; color: #e0f2fe;
}
.cu__on {
  position: absolute; right: -1px; bottom: -1px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  border: 1.5px solid #080d1a;
}
.cu__nick {
  font-size: .72rem; font-weight: 600;
  color: #c7d4ee;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cu__prefix { font-weight: 800; margin-right: .12rem; }
.cu__prefix--op { color: #4ade80; }
.cu__prefix--voice { color: #60a5fa; }
.cu__prefix--admin { color: #f87171; }

.cu.c0 .cu__av { background: #0c4a6e; color: #e0f2fe; }
.cu.c0 .cu__nick { color: #7dd3fc; }
.cu.c1 .cu__av { background: #312e81; color: #e0e7ff; }
.cu.c1 .cu__nick { color: #a5b4fc; }
.cu.c2 .cu__av { background: #713f12; color: #fef3c7; }
.cu.c2 .cu__nick { color: #fcd34d; }
.cu.c3 .cu__av { background: #14532d; color: #dcfce7; }
.cu.c3 .cu__nick { color: #86efac; }
.cu.c4 .cu__av { background: #831843; color: #fce7f3; }
.cu.c4 .cu__nick { color: #f9a8d4; }
.cu.c5 .cu__av { background: #4c1d95; color: #ede9fe; }
.cu.c5 .cu__nick { color: #c4b5fd; }
.cu.c6 .cu__av { background: #7c2d12; color: #ffedd5; }
.cu.c6 .cu__nick { color: #fdba74; }
.cu.c7 .cu__av { background: #134e4a; color: #ccfbf1; }
.cu.c7 .cu__nick { color: #5eead4; }

.chat-mock__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  min-height: 288px;
  background:
    radial-gradient(420px 220px at 78% -8%, rgba(59, 130, 246, .18), transparent 70%),
    radial-gradient(320px 220px at 6% 112%, rgba(37, 99, 235, .14), transparent 70%),
    #0b111f;
}
.msg {
  display: flex; gap: .65rem; align-items: flex-start;
  max-width: 96%;
  padding: .55rem .85rem .6rem;
  background: rgba(16, 25, 46, .92);
  border: 1px solid rgba(79, 146, 246, .35);
  border-radius: 18px;
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .9);
}
.msg__avatar {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 700;
  color: var(--on-primary);
  background: var(--primary);
}
.msg__avatar--b { background: var(--primary-deep); color: var(--on-primary); }
.msg__avatar--c { background: var(--warn); color: #2A1B00; }
.msg__meta { display: flex; align-items: baseline; gap: .5rem; }
.msg__nick { font-family: var(--font-display); font-size: .8125rem; font-weight: 700; color: #eaf1ff; }
.msg__time { font-size: .6875rem; color: #8fa3c8; font-variant-numeric: tabular-nums; }
.msg__text { font-size: .875rem; color: #c7d4ee; margin: .1rem 0 0; line-height: 1.5; }
.msg__text--action { font-style: italic; }
.msg.p0 { border-color: rgba(125, 211, 252, .45); }
.msg.p1 { border-color: rgba(165, 180, 252, .45); }
.msg.p2 { border-color: rgba(252, 211, 77, .42); }
.msg.p3 { border-color: rgba(134, 239, 172, .42); }
.msg.p4 { border-color: rgba(249, 168, 212, .42); }
.msg.p5 { border-color: rgba(196, 181, 253, .45); }
.msg.p6 { border-color: rgba(253, 186, 116, .45); }
.msg.p7 { border-color: rgba(94, 234, 212, .45); }
.msg.p0 .msg__nick { color: #7dd3fc; }
.msg.p0 .msg__avatar { background: #0c4a6e; color: #e0f2fe; }
.msg.p1 .msg__nick { color: #a5b4fc; }
.msg.p1 .msg__avatar { background: #312e81; color: #e0e7ff; }
.msg.p2 .msg__nick { color: #fcd34d; }
.msg.p2 .msg__avatar { background: #713f12; color: #fef3c7; }
.msg.p3 .msg__nick { color: #86efac; }
.msg.p3 .msg__avatar { background: #14532d; color: #dcfce7; }
.msg.p4 .msg__nick { color: #f9a8d4; }
.msg.p4 .msg__avatar { background: #831843; color: #fce7f3; }
.msg.p5 .msg__nick { color: #c4b5fd; }
.msg.p5 .msg__avatar { background: #4c1d95; color: #ede9fe; }
.msg.p6 .msg__nick { color: #fdba74; }
.msg.p6 .msg__avatar { background: #7c2d12; color: #ffedd5; }
.msg.p7 .msg__nick { color: #5eead4; }
.msg.p7 .msg__avatar { background: #115e59; color: #ccfbf1; }
.msg__avatar--img { position: relative; overflow: visible; padding: 0; }
.msg__avatar--img i { font-style: normal; }
.msg__avatar--img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--primary-deep);
}
.msg__aura {
  position: absolute;
  top: -3px; right: -3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  border: 1.5px solid #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
  line-height: 1;
  z-index: 1;
}

.chat-mock__input {
  display: flex; align-items: center; gap: .6rem;
  margin: 0;
  padding: .8rem 1rem;
  background: #0d1526;
  border: 0;
  border-top: 1px solid rgba(79, 146, 246, .3);
  border-radius: 0;
  color: #8fa3c8;
  font-size: .875rem;
}

.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-2);
}
.float-chip--a { top: -14px; right: 6%; }
.float-chip--b { bottom: -14px; left: 4%; }
.float-chip svg { width: 15px; height: 15px; color: var(--primary); }

/* "Web · App · Cliente IRC" → lenguaje visual del webchat moderno
   (mismo panel navy, borde y halo azul del .chat-mock) */
.float-chip--b {
  background: #0b111f;
  border: 1px solid rgba(79, 146, 246, .4);
  color: #e7eefc;
  box-shadow: var(--shadow-3), 0 14px 34px -16px rgba(47, 111, 228, .55);
}
.float-chip--b svg { color: #60a5fa; filter: drop-shadow(0 0 6px rgba(59, 130, 246, .55)); }

/* --------------------------------------------------------------------------
   7. ACCESOS RÁPIDOS (acciones)
   -------------------------------------------------------------------------- */
.access-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 clamp(1rem, 4vw, 2rem) var(--s-6);
}
.access-btns .menu-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: .8125rem;
  padding: .5rem .85rem;
  min-height: 40px;
}
.access-btns .menu-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}
.access-btns .menu-btn svg { width: 15px; height: 15px; color: var(--primary); }

/* --------------------------------------------------------------------------
   8. ENLACES DESTACADOS
   -------------------------------------------------------------------------- */
.link-groups { display: grid; gap: var(--s-6); }

.link-group { }
.link-group__title {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: var(--s-3);
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.link-group__title h3 { font: inherit; margin: 0; color: inherit; }

.featured-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.featured-links-list li { margin: 0; font-size: .875rem; line-height: 1.4; }
.featured-links-list li::before { content: none; }
.featured-links-list a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .42rem .8rem;
  color: var(--text-soft);
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.featured-links-list a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}
.featured-links-list a:hover {
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   9. PLATAFORMAS / SERVICIOS
   -------------------------------------------------------------------------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4);
}

.platform-card, .service-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.platform-card:hover, .service-block:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.platform-card .icon, .service-block .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
  border-radius: 12px;
  color: var(--primary);
  margin-bottom: .3rem;
}
.platform-card .icon svg, .service-block .icon svg { width: 22px; height: 22px; }

.platform-card h3, .service-block h3 {
  font-size: 1.0625rem;
  margin: 0;
}
.platform-card p, .service-block p {
  font-size: .9rem;
  color: var(--text-mute);
  margin: 0 0 .5rem;
  flex: 1;
}
.platform-card .note, .service-block .note {
  color: var(--warn);
  font-size: .8125rem;
  font-weight: 600;
  display: block;
  margin-bottom: .5rem;
}
.platform-card .card-actions, .service-block .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
}
.platform-card .card-actions .btn, .service-block .card-actions .btn { flex: 1 1 auto; font-size: .875rem; padding: .6rem .9rem; min-height: 42px; }

.platform-card .card-icons { display: flex; gap: .6rem; align-items: center; margin-bottom: .3rem; }
.platform-card .card-icons img { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; background: var(--surface-3); padding: 5px; border: 1px solid var(--border); }

.services-stack { display: grid; gap: var(--s-4); }

.services-title, .testimonios-title, .novedades-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0 0 var(--s-5);
}
.services-title--sub { margin-top: var(--s-7); }

/* --------------------------------------------------------------------------
   10. TESTIMONIOS / NOVEDADES / CTA
   -------------------------------------------------------------------------- */
.testimonios-slider {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}
#testimonioTexto {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, .95rem + .9vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 var(--s-3);
}
.testimonio-autor { font-size: .875rem; color: var(--text-mute); letter-spacing: .04em; }
.testimonios-cta { text-align: center; margin-top: var(--s-4); }

.novedades-block {
  background: color-mix(in srgb, var(--warn) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warn) 34%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.7;
}
.novedades-block a { color: var(--warn); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.channels-cta {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}
.channels-cta .cta-icon {
  width: 60px; height: 60px;
  margin: 0 auto var(--s-4);
  display: grid; place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 34%, transparent);
}
.channels-cta .cta-icon svg { width: 30px; height: 30px; }
.channels-cta h2 { font-size: var(--fs-2xl); margin-bottom: var(--s-3); }
.channels-cta p { max-width: 56ch; margin-inline: auto; color: var(--text-mute); margin-bottom: var(--s-5); }

/* --------------------------------------------------------------------------
   11. CONTENIDO SEO (editorial)
   -------------------------------------------------------------------------- */
.seo-content {
  max-width: 820px;
}
.seo-content h2 {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.seo-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.seo-content h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: var(--s-6);
  margin-bottom: var(--s-3);
}
.seo-content p { font-size: .975rem; line-height: 1.75; }
.seo-content ul { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.seo-content li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: .55rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.seo-content li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 1.5px;
  background: var(--primary);
}
.seo-content a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.seo-content a:hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: var(--s-7) clamp(1rem, 4vw, 2rem) var(--s-6);
  margin-top: var(--s-7);
  text-align: center;
  font-size: .875rem;
  color: var(--text-mute);
}
.footer-inner { max-width: var(--container); margin-inline: auto; }
footer > a, .footer-inner > a { color: var(--primary); font-weight: 600; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .9rem;
  margin: var(--s-4) 0 var(--s-3);
}
.footer-links a { color: var(--text-soft); font-weight: 600; font-size: .875rem; }
.footer-links a:hover { color: var(--primary); }
.footer-links a + a::before { content: "·"; margin-right: .9rem; color: var(--border-strong); }

.footer-mini { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; margin-bottom: var(--s-4); }
.footer-mini a { display: inline-flex; align-items: center; gap: .35rem; color: var(--primary); font-weight: 600; font-size: .875rem; }
.footer-mini svg { width: 15px; height: 15px; }

.footer-copy { font-size: .8125rem; color: var(--text-mute); }
.lite-mode-toggle-footer { margin-top: var(--s-4); font-size: .8125rem; }
.lite-mode-toggle-footer a { text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   13. STICKY CTA + THEME TOGGLE
   -------------------------------------------------------------------------- */
.sticky-chat-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: .9375rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.sticky-chat-btn.visible { opacity: 1; visibility: visible; transform: none; }
.sticky-chat-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.sticky-chat-btn .pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: currentColor;
  animation: livePulse 2s infinite;
}

.theme-toggle {
  position: fixed;
  right: 18px;
  top: calc(var(--header-h) + 14px);
  z-index: 70;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.theme-toggle:hover { transform: rotate(-18deg) scale(1.06); border-color: var(--primary); }

/* --------------------------------------------------------------------------
   14. PARTICULAS DE FONDO
   -------------------------------------------------------------------------- */
#particles-circles, #particles-hash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}
#particles-circles { background: radial-gradient(circle at 20% 30%, rgba(79,195,247,.12) 0, transparent 45%); }

.main-container, footer, .access-btns { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   15. LITE-MODE
   -------------------------------------------------------------------------- */
.lite-mode-banner {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding: .55rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--text-soft);
  position: relative;
  z-index: 65;
}
html.lite-mode .lite-mode-banner { display: flex; }
.lite-mode-banner button {
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: .2rem .6rem;
  cursor: pointer;
}

.lite-mode-quick-toggle {
  display: none;
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 70;
  background: var(--surface);
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 600;
  padding: .5rem .9rem;
  cursor: pointer;
  box-shadow: var(--shadow-2);
}
html.lite-mode .lite-mode-quick-toggle { display: block; }
html:not(.lite-mode) .lite-mode-toggle-footer { display: none; }

html.lite-mode #particles-circles,
html.lite-mode #particles-hash { display: none; }
html.lite-mode body { background-image: none; background-attachment: scroll; }
html.lite-mode .logo-bounce { animation: none; }
html.lite-mode .main-container { opacity: 1; transform: none; transition: none; }
html.lite-mode *,
html.lite-mode *::before,
html.lite-mode *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}
html.lite-mode .float-chip { display: none; }

/* --------------------------------------------------------------------------
   16. MODALES (Bootstrap tematizado)
   -------------------------------------------------------------------------- */
.modal-content {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.modal-title .icon { display: inline-flex; color: var(--primary); }
.modal-title .icon svg { width: 19px; height: 19px; }
.modal-body { padding: 1.35rem; color: var(--text-soft); }
.modal-body p { color: var(--text-soft); }
.btn-close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 1.25rem;
  line-height: 1;
  opacity: .85;
  cursor: pointer;
  filter: none;
}
.btn-close:hover { background: var(--surface-3); color: var(--text); opacity: 1; }
.modal-backdrop.show { opacity: .72; }

/* --- modal: dispositivos -------------------------------------------------- */
.device-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-4);
}
.device-access-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.device-access-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.device-access-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-size: .6875rem;
  font-weight: 700;
  padding: .18rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.device-access-icon {
  font-size: 1.9rem;
  line-height: 1;
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: .2rem;
}
.device-access-icon svg { width: 26px; height: 26px; }
.device-access-card.recommended { border-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.device-access-name { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 1rem; }
.device-access-desc { font-size: .8125rem; color: var(--text-mute); }
.device-connect-choice { display: flex; flex-direction: column; gap: .45rem; margin-top: .6rem; }
.device-choice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 600;
  padding: .55rem .7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-soft);
  min-height: 40px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.device-choice-btn:hover { border-color: var(--primary); color: var(--primary); }
.device-choice-btn--web { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--primary); }
.device-choice-hint { font-size: .6875rem; color: var(--text-mute); margin-top: .5rem; line-height: 1.5; }
.device-access-card--moderno { text-decoration: none; background: color-mix(in srgb, var(--primary) 10%, var(--bg-soft)); border-color: color-mix(in srgb, var(--primary) 34%, transparent); }
.device-access-card--moderno:hover { border-color: var(--primary); }
.device-access-card--moderno .device-access-btn {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: .8125rem;
  padding: .5rem .8rem;
  border-radius: var(--radius);
}

/* --- modal: conéctate ----------------------------------------------------- */
.wc-section-label {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: .5rem;
}
.wc-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .5rem;
}
.wc-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem .7rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--dur) var(--ease);
}
.wc-type-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.wc-type-card.selected, .wc-type-card.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, var(--bg-soft));
  box-shadow: inset 0 0 0 1px var(--primary);
}
.wc-type-badge {
  position: absolute;
  top: -8px; right: 8px;
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--on-accent);
  padding: .1rem .4rem;
  border-radius: 999px;
}
.wc-type-icon {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  color: var(--primary);
  margin-bottom: .15rem;
}
.wc-type-icon svg { width: 20px; height: 20px; }
.wc-type-name { font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: var(--text); }
.wc-type-desc { font-size: .6875rem; color: var(--text-mute); line-height: 1.4; }

.wc-recent-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.wc-recent-chip {
  font-size: .75rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .65rem;
  color: var(--text-soft);
  cursor: pointer;
}
.wc-recent-chip:hover { border-color: var(--primary); color: var(--primary); }
.wc-recent-chip.selected { background: color-mix(in srgb, var(--primary) 18%, transparent); border-color: var(--primary); color: var(--primary); }

.wc-extra-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.wc-action-btn {
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  padding: .35rem .6rem;
  min-height: 34px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.wc-action-btn:hover { border-color: var(--primary); color: var(--primary); }

.wc-search-box {
  width: 100%;
  font-family: var(--font-text);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: .6rem .8rem;
  min-height: 42px;
  margin-bottom: .6rem;
}
.wc-search-box:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 26%, transparent); }

.wc-channel-list {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: .35rem;
}
.wc-channel-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.wc-channel-item:hover { background: var(--surface-2); }
.wc-channel-item.selected { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.wc-channel-name { font-family: var(--font-display); font-size: .875rem; font-weight: 600; color: var(--text); min-width: 110px; }
.wc-channel-topic { font-size: .75rem; color: var(--text-mute); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-channel-users { font-size: .75rem; color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.wc-category-header {
  font-family: var(--font-display);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: .5rem .6rem .25rem;
}
.wc-category-count { color: var(--border-strong); font-weight: 600; margin-left: .35rem; }
.wc-channel-empty, .wc-skeleton { padding: 1rem; text-align: center; font-size: .8125rem; color: var(--text-mute); }
.wc-skeleton-bar { height: 10px; background: var(--surface-2); border-radius: 999px; margin-bottom: .5rem; animation: shimmer 1.3s infinite; }
@keyframes shimmer { 0%,100% { opacity: .5 } 50% { opacity: 1 } }

.modal-footer-conectate {
  border-top: 1px solid var(--border);
  padding: 1rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: stretch;
}
.wc-connect-btn {
  font-family: var(--font-text);
  font-size: .9375rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: .8rem 1.2rem;
  min-height: 48px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background var(--dur) var(--ease);
}
.wc-connect-btn svg { width: 18px; height: 18px; }
.wc-connect-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.wc-connect-summary { font-size: .75rem; color: var(--text-mute); text-align: center; }
.wc-qr-img { max-width: 220px; border-radius: var(--radius); background: #fff; padding: 8px; }

iframe { border: 0; width: 100%; display: block; }
.modal-body.p-0 { padding: 0; }

/* --------------------------------------------------------------------------
   17. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: var(--s-6); }
  .hero-preview { max-width: 560px; }
  .float-chip--a { right: 2%; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-strong);
    padding: .5rem;
    display: none;
    box-shadow: var(--shadow-2);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 1rem; font-size: .9375rem; border-radius: var(--radius); }
  .site-nav .header-cta { margin: .5rem 0 0; }
  .site-nav .header-cta .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }

  .section { padding-block: var(--s-7); }
  .quick-chat-input-group { flex-direction: column; }
  .quick-chat-btn { width: 100%; }
  .stats-row { gap: var(--s-4); gap: 1.5rem; }
  .access-btns { padding-bottom: var(--s-5); }
  .footer-links a + a::before { content: none; margin-right: 0; }
  .footer-links { gap: .5rem 1rem; }
  .theme-toggle { top: auto; bottom: 76px; right: 14px; }
  .sticky-chat-btn { right: 14px; bottom: 14px; padding: .7rem 1.05rem; font-size: .875rem; }
  .float-chip { display: none; }
  .chat-mock__users { display: none; }
}

@media (max-width: 480px) {
  .hero-logo { width: 62px; height: 62px; }
  .chat-mock__body { min-height: 240px; }
  .platform-card .card-actions .btn { width: 100%; flex: 1 1 100%; }
  .wc-channel-topic { display: none; }
  .stats-row { justify-content: space-between; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   18. MOTION / ACCESSIBILITY
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html.js .main-container { opacity: 1; transform: none; }
  .platform-card:hover, .service-block:hover, .device-access-card:hover { transform: none; }
}

/* impresión */
@media print {
  .site-header, .sticky-chat-btn, .theme-toggle, #particles-circles, #particles-hash,
  .access-btns, .lite-mode-quick-toggle, .chat-mock { display: none !important; }
  body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   19. CTA AZUL CORPORATIVO
   El webchat GlobalChat usa el azul #4fc3f7 → #2196F3 como color de marca:
   todos los botones de acción lo adoptan. El verde queda SOLO para estados
   "en línea" (puntos, contadores de usuarios).
   -------------------------------------------------------------------------- */
.btn-success,
.quick-chat-btn,
.sticky-chat-btn,
.wc-connect-btn,
.device-access-card--moderno .device-access-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  background-color: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary-deep);
}

.btn-success:hover,
.quick-chat-btn:hover,
.sticky-chat-btn:hover,
.wc-connect-btn:hover,
.device-access-card--moderno .device-access-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  background-color: var(--primary-hover);
  color: var(--on-primary);
  border-color: var(--primary);
}
