/* ============================================================
   CleanByte — static pages stylesheet (v10.0)
   Used by the hub (/) and Software Repair (/software-repair/).
   Self-contained: these two pages ship no framework and no
   React, so the whole visual layer is here (~9 KB).

   Themes
     default             — navy "azul" (hub, matches the waves)
     [data-theme="light"] — cream/navy (software repair, matches
                            the PC Cleaning branch)
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #0b1c2c;
  --surface: rgba(13, 30, 48, 0.72);
  --surface-solid: #0e2135;
  --raised: #10263d;
  --line: rgba(148, 197, 253, 0.16);
  --line-strong: rgba(96, 165, 250, 0.34);
  --ink: #f5f7fa;
  --ink-soft: #b7c9da;
  --ink-mute: #8ba3b8;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --accent-deep: #2563eb;
  --red: #c8102e;
  --ok: #34d399;
  --radius: 1.25rem;
  --shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.85);
  --maxw: 68rem;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

[data-theme="light"] {
  --bg: #faf7f2;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --raised: #f2ede5;
  --line: rgba(30, 58, 95, 0.14);
  --line-strong: rgba(37, 99, 235, 0.3);
  --ink: #0f1c2e;
  --ink-soft: #43566d;
  --ink-mute: #6b7c92;
  --accent: #1d4ed8;
  --accent-2: #0891b2;
  --shadow: 0 24px 60px -34px rgba(11, 28, 44, 0.5);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

/* visible focus for keyboard users, invisible for mouse */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.75rem 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

.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;
}

/* ---------- wave layer ---------- */
#cbx-waves {
  position: fixed;
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100lvh;
  z-index: -5;
  pointer-events: none;
  overflow: hidden;
}
#cbx-waves canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, #000 14%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, #000 14%);
}
/* no WebGL: a quiet gradient stands in for the wave field */
:root[data-cbx-wave-fallback] body {
  background-image: radial-gradient(
    120% 70% at 50% 18%,
    rgba(56, 189, 248, 0.14) 0%,
    transparent 62%
  );
  background-attachment: fixed;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
section { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0.75rem 0;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.logo .mark {
  width: 2rem; height: 2rem;
  border-radius: 0.55rem;
  background: #1e3a5f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  position: relative;
  flex: none;
}
.logo .mark::after {
  content: "";
  position: absolute;
  left: 0.3rem; right: 0.3rem; bottom: 0.3rem;
  height: 2px; border-radius: 1px;
  background: var(--red);
}
.logo b { color: var(--accent); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s;
}
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s, opacity 0.16s, background-color 0.16s, border-color 0.16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(100deg, var(--accent-deep), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(37, 99, 235, 0.85);
}
.btn-primary:hover { opacity: 0.94; }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.88rem; border-radius: 0.7rem; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.chip b { color: var(--accent); font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(3rem, 9vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
  position: relative;
}
/* the wave field runs behind the hero copy; this keeps the text readable
   without hiding the waves around it */
.hero > * { position: relative; z-index: 1; }
.hero::before {
  content: "";
  position: absolute;
  inset: -2rem -1.5rem;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    75% 60% at 22% 45%,
    color-mix(in srgb, var(--bg) 88%, transparent) 0%,
    color-mix(in srgb, var(--bg) 62%, transparent) 45%,
    transparent 78%
  );
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .hero::before { background: none; }
}
[data-theme="light"] .hero::before { background: none; }
.hero h1 {
  font-size: clamp(2.5rem, 7.2vw, 4.5rem);
  margin-top: 1.25rem;
  max-width: 16ch;
}
.grad {
  background: linear-gradient(96deg, var(--accent), var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin-top: 1.35rem;
  max-width: 46ch;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  color: var(--ink-soft);
}
.hero .cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .chip-row { margin-top: 2rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* ---------- section heads ---------- */
.head { max-width: 44rem; margin-bottom: 2.5rem; }
.head h2 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); margin-top: 0.9rem; }
.head p { margin-top: 0.9rem; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
/* standalone so callouts get it too, not just cards */
.icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.8rem;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.22), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--line-strong);
  color: var(--accent);
}
.icon svg { width: 1.35rem; height: 1.35rem; flex: none; }
.card .icon { margin-bottom: 1.1rem; }

/* service card = whole card is one link target */
.service {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.service:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.9);
}
.service .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 1rem;
}
.service ul { margin-top: 1.1rem; margin-bottom: 1.15rem; display: grid; gap: 0.5rem; }
.service li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.service li::before {
  content: "";
  flex: none;
  width: 1.05rem; height: 1.05rem;
  margin-top: 0.22rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 0.68rem;
  background-repeat: no-repeat;
  background-position: center;
}
.service .go {
  padding-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--accent);
}
.service:hover .go svg { transform: translate(2px, -2px); }
.service .go svg { width: 0.95rem; height: 0.95rem; transition: transform 0.2s; }
.price {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ink);
}
.price small {
  display: block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ink-mute);
  letter-spacing: 0;
  margin-top: 0.15rem;
}

/* ---------- numbered steps ---------- */
/* an <ol> for semantics, but the numbers are drawn by the counter below —
   list-style:none stops the browser drawing a second set */
.steps {
  counter-reset: s;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.step { position: relative; padding-top: 2.6rem; list-style: none; }
.step::before {
  counter-increment: s;
  content: "0" counter(s);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.55;
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- price table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table.rates {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}
table.rates caption {
  caption-side: bottom;
  padding: 0.9rem 1.1rem;
  font-size: 0.84rem;
  color: var(--ink-mute);
  text-align: left;
}
table.rates th, table.rates td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.rates thead th {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] table.rates thead th { background: rgba(11, 28, 44, 0.035); }
table.rates tbody tr:last-child th,
table.rates tbody tr:last-child td { border-bottom: 0; }
table.rates tbody th { font-weight: 600; color: var(--ink); }
table.rates td.amount {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
table.rates td small {
  display: block;
  font-weight: 400;
  color: var(--ink-mute);
  font-size: 0.82rem;
  /* la celda del precio lleva nowrap para no partir "$45–$75";
     la nota de al lado sí tiene que poder envolver */
  white-space: normal;
}

/* ---------- callout ---------- */
.callout {
  border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.12), rgba(34, 211, 238, 0.07));
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.callout .icon { flex: none; margin: 0; }
.callout h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.callout p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.contact-grid dt {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.contact-grid dd { margin: 0; font-size: 1.05rem; font-weight: 600; }
.contact-grid dd a { text-decoration: none; color: var(--accent); }
.contact-grid dd a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  margin-top: 1rem;
}
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer p, .site-footer a { font-size: 0.88rem; color: var(--ink-mute); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 1.1rem; }

/* ---------- 404 ---------- */
.err { min-height: 78vh; display: grid; place-items: center; text-align: center; }
.err .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 18vw, 9rem);
  line-height: 1;
  background: linear-gradient(96deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.err h1 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); margin-top: 0.75rem; }
.err p { margin-top: 1rem; color: var(--ink-soft); max-width: 40ch; margin-inline: auto; }
.err .cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- scroll reveal (opt-in, motion-safe) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- mobile: the wave field sits directly behind full-width copy ---------- */
@media (max-width: 768px) {
  #cbx-waves { opacity: 0.5; }
  .hero::before {
    inset: -1.5rem -1.25rem;
    background: radial-gradient(
      110% 62% at 40% 46%,
      color-mix(in srgb, var(--bg) 94%, transparent) 0%,
      color-mix(in srgb, var(--bg) 78%, transparent) 52%,
      transparent 84%
    );
  }
  @supports not (background: color-mix(in srgb, red 50%, blue)) {
    .hero::before { background: none; }
  }
  [data-theme="light"] .hero::before { background: none; }
}

/* ============================================================
   MÓVIL
   ============================================================ */

/* --- la tabla de precios se convierte en tarjetas ---
   En un teléfono, tres columnas obligan a scroll lateral dentro del
   contenedor. Se mantiene el <table> (semántica y lectores de pantalla
   intactos) y solo cambia la presentación. */
@media (max-width: 640px) {
  table.rates { min-width: 0; display: block; border: 0; background: none; }
  table.rates thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.rates tbody { display: grid; gap: 0.7rem; }
  table.rates tr {
    display: grid;
    /* pistas acotadas: una pista `auto` se dimensiona al contenido y el
       max-width del <td> no la limita, así que la nota del precio se salía */
    grid-template-columns: minmax(0, 1fr) minmax(0, 8.5rem);
    gap: 0.15rem 0.9rem;
    align-items: baseline;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 0.95rem 1.05rem;
  }
  table.rates th, table.rates td { border: 0; padding: 0; }
  table.rates tbody th { grid-column: 1; font-size: 0.97rem; }
  /* el precio no debe robarle ancho al nombre del servicio */
  table.rates td.amount {
    grid-column: 2;
    text-align: right;
    font-size: 1.02rem;
    max-width: 9.5rem;
  }
  table.rates td.amount small { text-align: right; margin-top: 0.2rem; line-height: 1.35; }
  table.rates td[data-label="Duración"] {
    grid-column: 1 / -1;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--ink-mute);
  }
  table.rates td[data-label="Duración"]::before {
    content: attr(data-label) ": ";
    font-family: var(--f-mono, inherit);
  }
  /* display:block en la tabla deja el caption como una columna estrecha */
  table.rates caption {
    display: block;
    width: 100%;
    padding: 0.9rem 0.2rem 0;
    caption-side: bottom;
  }
  .table-scroll { overflow: visible; }
}

/* --- áreas táctiles: nada interactivo por debajo de 44px de alto --- */
@media (max-width: 900px) {
  .site-footer .links a,
  .contact-grid dd a,
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .site-footer .links { gap: 0.25rem 1.25rem; }
  .logo { min-height: 44px; }

  /* miga de pan */
  .hero nav[aria-label="Breadcrumb"] ol { gap: 0.35rem; }
  .hero nav[aria-label="Breadcrumb"] a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 0.15rem;
  }

  /* botones a ancho completo en pantallas estrechas: más fáciles de acertar */
  .hero .cta .btn, .contact-card .cta .btn { flex: 1 1 14rem; }

  /* etiquetas en mayúsculas: un pelo más grandes para que se lean bien */
  .eyebrow { font-size: 0.82rem; }
}


/* El selector de idioma lo inyecta cbx-i18n; sus estilos vivían solo en
   cbx-extras-v10.css, que estas páginas no cargan — sin esto salía como
   un botón sin formato de 21px de alto. */
/* ============================================================
   Language toggle (cbx-i18n) — explicit pill + first-visit hint
   ============================================================ */
.cbx-lang-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(29, 63, 95, 0.22);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #14304a;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(11, 28, 44, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.cbx-lang-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(11, 28, 44, 0.55);
}
.cbx-lang-globe { font-size: 1rem; }

.cbx-lang-hint {
  position: fixed;
  left: 16px;
  bottom: 64px;
  z-index: 9991;
  max-width: 250px;
  padding: 0.8rem 2.1rem 0.8rem 1rem;
  border-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
  background: #0b1c2c;
  color: #ffffff;
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 16px 40px -14px rgba(11, 28, 44, 0.6);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.cbx-lang-hint.cbx-in { opacity: 1; transform: none; pointer-events: auto; }
.cbx-lang-hint strong { color: #22d3ee; }
.cbx-lang-hint-x {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}
.cbx-lang-hint-x:hover { color: #ffffff; }

@media (max-width: 640px) {
  .cbx-lang-btn { left: 12px; bottom: 12px; font-size: 0.78rem; padding: 0.55rem 0.85rem; }
  .cbx-lang-hint { left: 12px; bottom: 58px; }

/* área táctil del selector de idioma en móvil */
@media (max-width: 900px) {
  .cbx-lang-btn { min-height: 44px; }
  .cbx-lang-hint-x {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    top: 0.1rem; right: 0.1rem;
  }
}

/* ---------- volver al hub ----------
   Las tres secciones cuelgan del hub, así que necesitan una salida clara
   hacia él. Va en la cabecera y NO se esconde en móvil: ahí la navegación
   desaparece, que es justo cuando más falta hace. */
.bar-actions { display: flex; align-items: center; gap: 0.5rem; }

.btn-hub {
  min-height: 44px;   /* área táctil: .btn-sm se queda en 36 px */
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-soft);
  gap: 0.4rem;
}
.btn-hub:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-hub svg { flex: none; transition: transform 0.18s; }
.btn-hub:hover svg { transform: translateX(-2px); }

@media (max-width: 520px) {
  /* en pantallas estrechas se queda solo la flecha, pero con área táctil
     completa y su etiqueta accesible intacta */
  .btn-hub span {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .btn-hub { padding-inline: 0.75rem; }
}
