/* ============================================================
   Horizun Hub — Componentes (páginas de módulo, precios, auth, panel)
   Extiende hub.css. Carga DESPUÉS de hub.css.
   ============================================================ */

/* Acentos por módulo (se aplican con .m-<modulo> en <main>) */
.m-academia { --accent: #16b6c0; --accent-2: #0a7b83; }
.m-recursos { --accent: #2f86d4; --accent-2: #1d67a7; }
.m-powerbi  { --accent: #f4b942; --accent-2: #c8902a; }
.m-videos   { --accent: #f2618c; --accent-2: #c63f6b; }
.m-ia       { --accent: #7b6cf6; --accent-2: #5a4bd6; }
.m-precios  { --accent: #2fbf71; --accent-2: #1f9a59; }
main { --accent: var(--teal); --accent-2: var(--teal-2); }

/* ------------------------------------------------------------
   NAV — estado activo + menú móvil
   ------------------------------------------------------------ */
.nav-links a.active { color: var(--cyan); }
.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--ink); cursor: pointer; place-items: center;
}
.nav-toggle:hover { border-color: var(--teal); color: var(--cyan); }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 920px) {
  .nav-inner { position: relative; }
  .nav-toggle { display: grid; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(11,17,28,.98); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 14px; padding: 8px;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 9px; font-size: 15px; }
  .nav-links a:hover { background: var(--surface-2); }
}

/* ------------------------------------------------------------
   PAGE HERO (sub-páginas)
   ------------------------------------------------------------ */
.page-hero { padding: 64px 0 34px; position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: -40px 0 auto 0; height: 360px; z-index: -1;
  background: radial-gradient(600px 280px at 18% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.breadcrumb { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--ink-2); }
.page-hero .overline { color: var(--accent); }
.page-hero h1 { font-size: clamp(30px, 5.4vw, 52px); margin: 14px 0 16px; }
.page-hero .lead { max-width: 660px; color: var(--ink-2); font-size: clamp(16px, 2vw, 19px); margin: 0 0 26px; }
.page-hero .hero-actions { justify-content: flex-start; }

/* Accent buttons heredan --accent */
.btn-accent { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #06141b; }
.btn-accent:hover { filter: brightness(1.08); }

/* ------------------------------------------------------------
   CHIPS (filtros / categorías)
   ------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 8px 0 34px; }
.chip {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.on {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  border-color: var(--accent); color: var(--cyan);
}

/* ------------------------------------------------------------
   GRID + CARDS
   ------------------------------------------------------------ */
.content-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.content-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 20px 50px -24px color-mix(in srgb, var(--accent) 60%, black); }

.card .thumb {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 30% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%),
    var(--surface-2);
  border-bottom: 1px solid var(--line); color: color-mix(in srgb, var(--accent) 75%, white);
  overflow: hidden;
}
.card .thumb svg { width: 46px; height: 46px; opacity: .92; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .time {
  position: absolute; right: 10px; bottom: 10px;
  font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px;
  background: rgba(7,11,18,.78); color: var(--ink); border: 1px solid var(--line-2);
}
.card .thumb .play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(7,11,18,.55); border: 1px solid rgba(255,255,255,.25);
  transition: transform .15s ease, background .15s ease;
}
.card:hover .thumb .play { transform: scale(1.08); background: color-mix(in srgb, var(--accent) 40%, rgba(7,11,18,.55)); }
.card .thumb .play svg { width: 22px; height: 22px; opacity: 1; }

.card .lock {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; color: var(--ink);
  background: rgba(7,11,18,.72); border: 1px solid var(--line-2); backdrop-filter: blur(4px);
}
.card .lock svg { width: 12px; height: 12px; }

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card-title { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.card-desc { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 13px; height: 13px; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
.card-cta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--cyan); }
.card-cta svg { width: 15px; height: 15px; transition: transform .15s ease; }
.card:hover .card-cta svg { transform: translateX(4px); }
.card .price-mini { font-family: var(--mono); font-size: 13px; color: var(--ink); }

/* Tarjeta tipo herramienta (sin thumb, icono grande) */
.card--tool .card-body { padding: 24px; }
.card--tool .tool-ico {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--grad-soft); border: 1px solid var(--line-2); color: color-mix(in srgb, var(--accent) 80%, white);
}
.card--tool .tool-ico svg { width: 26px; height: 26px; }

/* Etiquetas globales */
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 6px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.taglist { display: flex; flex-wrap: wrap; gap: 7px; }

/* ------------------------------------------------------------
   FEATURES / BENEFICIOS
   ------------------------------------------------------------ */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.feature .fico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--cyan);
}
.feature .fico svg { width: 23px; height: 23px; }
.feature h4 { font-size: 16.5px; margin: 0 0 8px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* ------------------------------------------------------------
   STEPS / RUTA DE APRENDIZAJE
   ------------------------------------------------------------ */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 17px; font-weight: 600; color: #06141b;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.step h4 { margin: 0 0 6px; font-size: 16.5px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------
   CTA BANNER
   ------------------------------------------------------------ */
.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  padding: 56px 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(700px 320px at 50% -30%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    var(--surface);
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 14px; }
.cta-banner p { color: var(--ink-2); max-width: 560px; margin: 0 auto 26px; font-size: 17px; }
.cta-banner .hero-actions { justify-content: center; }

/* ------------------------------------------------------------
   PRICING
   ------------------------------------------------------------ */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.plan--featured { border-color: transparent; background: var(--surface-2); }
.plan--featured::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.plan .plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; color: #06222a; background: var(--grad-brand);
}
.plan h3 { font-size: 19px; margin: 0 0 6px; }
.plan .ptag { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; min-height: 38px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .price .amt { font-size: 42px; font-weight: 800; letter-spacing: -.03em; }
.plan .price .cur { font-size: 18px; color: var(--muted); font-weight: 600; }
.plan .per { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 22px; }
.plan .btn { width: 100%; justify-content: center; margin-bottom: 22px; }
.plan ul.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.plan ul.feats li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: start; }
.plan ul.feats li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }

@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ------------------------------------------------------------
   AUTH (login / registro)
   ------------------------------------------------------------ */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 24px; }
.auth-frame { width: min(440px, 100%); }
.auth .logo { height: 28px; margin: 0 auto 26px; display: block; }
.auth-card {
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  box-shadow: 0 24px 70px -30px rgba(0,0,0,.8); padding: 32px 30px;
}
.auth-card .overline { color: var(--teal); margin-bottom: 12px; }
.auth-card h1 { font-size: 25px; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; line-height: 1.55; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 10px; margin-bottom: 24px; border: 1px solid var(--line); }
.auth-tab { flex: 1; padding: 9px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 13.5px; border-radius: 7px; cursor: pointer; }
.auth-tab.on { background: var(--surface-2); color: var(--cyan); box-shadow: 0 1px 0 rgba(255,255,255,.03) inset; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.field input {
  width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--bg-2); color: var(--ink); padding: 0 14px; font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,182,192,.18); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-msg { min-height: 20px; margin-top: 14px; font-size: 13.5px; font-weight: 500; }
.auth-msg.err { color: var(--error); }
.auth-msg.ok { color: var(--ok); }
.auth-foot { margin-top: 22px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--faint); }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--cyan); }
.hidden { display: none !important; }

/* ------------------------------------------------------------
   PANEL (área de miembros)
   ------------------------------------------------------------ */
.panel-head { padding: 44px 0 8px; }
.panel-head .hello { font-size: clamp(26px, 4vw, 38px); margin: 6px 0 8px; }
.panel-head .sub { color: var(--muted); font-size: 16px; }
.panel-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.panel-card {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  display: flex; flex-direction: column; gap: 10px;
}
.panel-card .pc-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--cyan); }
.panel-card .pc-ico svg { width: 22px; height: 22px; }
.panel-card h3 { font-size: 17px; margin: 0; }
.panel-card p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.progress { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); }
.kpi { display: flex; gap: 26px; flex-wrap: wrap; }
.kpi .k .n { font-size: 26px; font-weight: 800; }
.kpi .k .l { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------
   UTILIDADES
   ------------------------------------------------------------ */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-lg > * + * { margin-top: 56px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 40px; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Fallback color-mix para navegadores viejos (degradación elegante) */
@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .chip.on { background: var(--surface-2); color: var(--cyan); }
  .card:hover { border-color: var(--teal); }
}

/* ------------------------------------------------------------
   TOAST (notificaciones del cliente — assets/hub-app.js)
   ------------------------------------------------------------ */
.hub-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px);
  z-index: 1000; max-width: min(440px, 90vw);
  padding: 13px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 14.5px; font-weight: 600; box-shadow: 0 18px 50px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
}
.hub-toast.show { opacity: 1; transform: translate(-50%, 0); }
.hub-toast.ok { border-color: var(--ok); }
.hub-toast.warn { border-color: var(--warn); }
.hub-toast.err { border-color: var(--error); }

/* ------------------------------------------------------------
   MODAL DE PAGO (selector Wompi / PayPal — assets/hub-app.js)
   ------------------------------------------------------------ */
.pay-modal {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center;
  padding: 20px; background: rgba(3, 7, 14, .68); backdrop-filter: blur(4px);
}
.pay-card {
  position: relative; width: min(420px, 100%);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.pay-card h3 { margin: 0 0 4px; font-size: 20px; }
.pay-card > p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.pay-x {
  position: absolute; top: 12px; right: 14px; background: none; border: 0;
  color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer;
}
.pay-x:hover { color: var(--ink); }
.pay-methods { display: grid; gap: 10px; }
.pay-method { width: 100%; justify-content: space-between; }
.pay-method small { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------
   ADMIN (consola /admin)
   ------------------------------------------------------------ */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.admin-table th { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.admin-table td { color: var(--ink); }
.admin-table .muted { color: var(--muted); }
.admin-table select { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 8px; font: inherit; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); }
.pill.on { color: var(--ok); border-color: var(--ok); }
.pill.off { color: var(--error); border-color: var(--error); }
.pill.plan-pro { color: var(--cyan); border-color: var(--teal); }
.pill.plan-empresa { color: var(--warn); border-color: var(--warn); }
.admin-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.admin-card h3 { margin: 0 0 6px; font-size: 18px; }
.admin-card p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select {
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 12px; font: inherit; min-width: 180px;
}
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* ------------------------------------------------------------
   APPS — estado "Próximamente"
   ------------------------------------------------------------ */
.card--soon { opacity: .92; }
.card--soon .thumb { filter: grayscale(.35); }
.lock.soon { color: var(--warn); border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.lock.live { color: var(--ok); border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.card-cta.is-soon { color: var(--muted); cursor: default; pointer-events: none; }

/* ------------------------------------------------------------
   VIDEOS — tarjetas con miniatura de YouTube
   ------------------------------------------------------------ */
.video-card { text-decoration: none; }
.video-thumb { aspect-ratio: 16 / 9; }
.video-thumb img { transition: transform .3s ease; }
.video-thumb .vplay { position: absolute; inset: 0; display: grid; place-items: center; }
.video-thumb .vplay svg { width: 54px; height: 54px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.45)); transition: transform .16s ease; }
.video-card:hover .vplay svg { transform: scale(1.08); }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-card .card-title { font-size: 15.5px; line-height: 1.34; }

/* ------------------------------------------------------------
   PRECIOS — plan único
   ------------------------------------------------------------ */
.plans--single { grid-template-columns: minmax(0, 480px); justify-content: center; }
.plan .price-note { font-family: var(--mono); font-size: 12px; color: var(--cyan); margin: 0 0 20px; min-height: 16px; }
.plan ul.feats li.hl { color: var(--ink); }
.plan ul.feats li.hl strong { color: var(--cyan); }
.plan .plan-foot-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }
.plan .plan-foot-note a { color: var(--cyan); }
.plans--triple { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .plans--triple { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ------------------------------------------------------------
   CLIENTES — confían en nosotros
   ------------------------------------------------------------ */
.client-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; max-width: 560px; }
.client-stats .cs { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.client-stats .cs strong { display: block; font-size: 26px; font-weight: 800; color: var(--cyan); line-height: 1; margin-bottom: 6px; }
.client-stats .cs span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.logos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.logos-grid.compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.logo-card { display: grid; place-items: center; min-height: 104px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.logos-grid.compact .logo-card { min-height: 88px; padding: 12px; }
.logo-card img { max-width: 100%; max-height: 58px; object-fit: contain; transition: transform .16s ease; }
.logos-grid.compact .logo-card img { max-height: 46px; }
.logo-card:hover img { transform: translateY(-2px); }
@media (max-width: 520px) { .client-stats { grid-template-columns: 1fr; } .logos-grid { grid-template-columns: repeat(2, 1fr); } }

/* Carrusel de clientes — marquee horizontal infinito */
.logos-grid.clients-marquee {
  display: block; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.clients-marquee .marquee-track { display: flex; width: max-content; animation: hub-marquee 38s linear infinite; }
.clients-marquee .marquee-seq { display: flex; flex: 0 0 auto; }
.clients-marquee .logo-card { flex: 0 0 auto; width: 168px; margin-right: 14px; }
.logos-grid.compact.clients-marquee .logo-card { width: 142px; margin-right: 12px; }
.clients-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes hub-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .clients-marquee .marquee-track { animation: none; }
  .logos-grid.clients-marquee { overflow-x: auto; }
}

/* ------------------------------------------------------------
   ACCESIBILIDAD — foco de teclado visible (WCAG 2.4.7)
   ------------------------------------------------------------ */
.btn:focus-visible,
.nav-links a:focus-visible,
.nav-ghost:focus-visible,
.nav-cta:focus-visible,
.nav-toggle:focus-visible,
.chip:focus-visible,
.card:focus-visible,
.card-cta:focus-visible,
.module:focus-visible,
.panel-card:focus-visible,
.auth-tab:focus-visible,
.logo-card:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .card, .chip, .module, .logo-card, .card-cta, .btn, .nav-cta, .hub-toast, .logo-card img, .panel-card {
    transition: none !important;
  }
  .card:hover, .module:hover, .logo-card:hover img { transform: none !important; }
}
