/* Hipercapital Finance — sistema de diseño común (web principal y subwebs).
   Lenguaje visual tomado de HIPERMASK: logo luminoso, cuadrícula tenue, partículas,
   textos finos y espaciados, fichas translúcidas y botón con halo. */
:root {
  --bg: #040506;
  --bg-2: #080a12;
  --glow: #00c2ff;
  --glow-deep: #0088b3;
  --tile: rgba(0, 194, 255, .04);
  --tile-hi: rgba(0, 194, 255, .08);
  --line: rgba(0, 194, 255, .15);
  --line-soft: rgba(0, 191, 255, .08);
  --line-hi: rgba(0, 194, 255, .45);
  --gold: #d4b46a;
  --gold-glow: rgba(212, 180, 106, .35);
  --text: #fafafa;
  --text-dim: #c3cbd9;
  --text-muted: #9aa5b8;
  --text-faint: #64708a;
  --radius: 16px;
  --max: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --btn-grad: linear-gradient(135deg, #00c2ff 0%, #0088b3 100%);
  --text-grad: linear-gradient(180deg, #f6e7bd 0%, #e2c47c 50%, #d4b46a 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0, 191, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, .03) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, #0b0e14, var(--bg) 55%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glow); text-decoration: none; }
a:hover { color: #7fe0ff; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font); margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 300; letter-spacing: .02em; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.grad-text, .gold { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-muted); }
.skip { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; left: 12px; top: 12px; z-index: 100; background: var(--bg-2); padding: 8px 14px; }

/* ---------- Partículas ---------- */
#hc-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.hc-header, main, .hc-footer { position: relative; z-index: 1; }

/* ---------- Cabecera ---------- */
.hc-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 5, 6, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.hc-header .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.hc-brand { display: flex; align-items: center; flex-shrink: 0; }
.hc-brand img { height: 34px; width: auto; filter: drop-shadow(0 0 14px rgba(0, 194, 255, .45)); }
.hc-nav { display: flex; gap: 4px; margin-left: auto; }
.hc-nav a {
  color: var(--text-muted); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap; transition: color .2s ease;
}
.hc-nav a:hover { color: var(--text); }
.hc-nav a[aria-current="page"] { color: var(--glow); text-shadow: 0 0 18px rgba(0, 194, 255, .6); }
.hc-actions { display: flex; gap: 10px; flex-shrink: 0; }
.hc-burger {
  display: none; margin-left: auto; background: var(--tile); border: 1px solid var(--line);
  color: var(--text); border-radius: 12px; width: 44px; height: 42px; cursor: pointer;
}
.hc-burger svg { width: 20px; height: 20px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--font); padding: 15px 30px; border-radius: 14px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; border-radius: 11px; }
.btn-lg { padding: 20px 56px; font-size: 18px; border-radius: 16px; }
.btn-primary { background: var(--btn-grad); color: #fff; box-shadow: 0 0 30px rgba(0, 194, 255, .35); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 50px rgba(0, 194, 255, .55); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--tile); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-hi); background: var(--tile-hi); box-shadow: 0 0 24px rgba(0, 194, 255, .15); }
.btn-gold { border-color: rgba(212, 180, 106, .4); color: var(--gold); background: rgba(212, 180, 106, .06); }
.btn-gold:hover { color: #f0d796; border-color: rgba(212, 180, 106, .7); box-shadow: 0 0 28px var(--gold-glow); }

/* ---------- Elementos de firma ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 34px auto 22px; }
.divider::before, .divider::after { content: ""; width: 110px; height: 1px; }
.divider::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider span { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold), 0 0 30px var(--gold-glow); }
.spaced {
  font-size: 13px; font-weight: 400; letter-spacing: .38em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 18px;
}
.thin { font-weight: 200; letter-spacing: .08em; color: var(--text-muted); font-size: clamp(1.15rem, 2.3vw, 1.5rem); line-height: 1.5; }

/* ---------- Portada ---------- */
.hero { position: relative; text-align: center; padding: 96px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -160px; width: 1100px; height: 760px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 50% 30%, rgba(212, 180, 106, .14), transparent 60%),
    radial-gradient(closest-side, rgba(0, 160, 210, .38), rgba(0, 110, 160, .14) 45%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-logo { width: min(520px, 86%); margin: 0 auto; filter: drop-shadow(0 0 40px rgba(0, 194, 255, .55)) drop-shadow(0 0 110px rgba(0, 194, 255, .3)); }
.hero-symbol { width: 150px; margin: 0 auto; filter: drop-shadow(0 0 40px rgba(0, 194, 255, .7)) drop-shadow(0 0 100px rgba(0, 194, 255, .35)); }
.hero .thin { max-width: 720px; margin: 0 auto; }
.hero-escudo { width: 240px; margin: 0 auto; filter: drop-shadow(0 0 30px rgba(0, 194, 255, .3)); animation: emblem-float 6s ease-in-out infinite; }
@media (max-width: 620px) { .hero-escudo { width: 180px; } }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.page-hero { position: relative; text-align: center; padding: 84px 0 40px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; left: 50%; top: -220px; width: 1000px; height: 600px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 50% 55%, rgba(212, 180, 106, .15), transparent 70%),
    radial-gradient(closest-side, rgba(0, 150, 200, .16), transparent 80%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 300; letter-spacing: .02em; max-width: 880px; margin: 0 auto .4em; }
.page-hero .thin { max-width: 760px; margin: 0 auto; }

/* ---------- Cifras ---------- */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; margin-top: 46px; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat svg { width: 24px; height: 24px; color: var(--glow); flex-shrink: 0; }
.stat b { font-size: 30px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { font-size: 15px; color: var(--text-muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Secciones ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.section-head p { color: var(--text-muted); }

/* ---------- Fichas (estilo HIPERMASK) ---------- */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.tiles.t3 { grid-template-columns: repeat(3, 1fr); }
.tiles.t2 { grid-template-columns: repeat(2, 1fr); }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  min-width: 0; overflow-wrap: anywhere;
  padding: 28px 22px 24px; border-radius: var(--radius);
  background: var(--tile); border: 1px solid var(--line); color: var(--text);
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
a.tile:hover { color: var(--text); transform: translateY(-4px) scale(1.02); border-color: var(--line-hi); background: var(--tile-hi); box-shadow: 0 0 40px rgba(0, 194, 255, .12); }
.tile .ico { color: var(--glow); filter: drop-shadow(0 0 10px rgba(0, 194, 255, .5)); }
.tile .ico svg { width: 34px; height: 34px; stroke-width: 1.6; }
.tile h3 { margin: 4px 0 0; font-size: 17px; }
.tile .kind { font-size: 13px; color: var(--text-muted); margin-top: -6px; }
.tile p { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin: 6px 0 0; }
.tile .host { margin-top: auto; padding-top: 14px; font-size: 11.5px; letter-spacing: .04em; color: var(--text-faint); }
.tile .badge {
  position: absolute; top: 12px; right: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; color: var(--glow); background: rgba(0, 194, 255, .08); border: 1px solid var(--line);
}
.tile:has(.badge) { padding-top: 46px; }
.tile.compact { padding: 24px 16px 20px; }
.tile.compact p { display: none; }

.cat { margin-top: 64px; }
.cat:first-child { margin-top: 0; }
.cat-head { text-align: center; margin-bottom: 26px; }
.cat-head h3 { font-size: 13px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.cat-head p { font-size: 15px; margin: 0; }

/* ---------- Paneles ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .text { text-align: left; }
.split .text .spaced { margin-bottom: 14px; }
.panel {
  background: rgba(0, 194, 255, .03); border: 1px solid var(--line); border-radius: 20px; padding: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.panel h3 { font-size: 13px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); color: var(--text-dim); font-size: 15px; }
.list li:last-child { border-bottom: 0; }
.list li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; color: var(--text); word-break: break-all; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { font-size: 13.5px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); background: var(--tile); }

.token { align-items: stretch; text-align: center; }
.token .sym { font-size: 30px; font-weight: 700; letter-spacing: .04em; color: #fff; text-shadow: 0 0 24px rgba(0, 194, 255, .45); }
.token .name { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.token .ref { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-muted); }
.token .ref b { color: var(--text); }

.notice { display: flex; gap: 12px; align-items: flex-start; max-width: 820px; margin: 40px auto 0; font-size: 14px; color: var(--text-muted); text-align: left; }
.notice::before { content: "⚠"; color: #f5b041; font-size: 16px; line-height: 1.4; }
.notice a { color: var(--glow); }

.cta-final { text-align: center; padding: 70px 0 96px; }
.cta-final .thin { margin: 0 auto 36px; max-width: 640px; }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: 0; margin-top: 2em; color: var(--text); }
.prose p, .prose li { color: var(--text-dim); font-size: 15.5px; }
.prose ul { padding-left: 20px; }

/* ---------- Pie ---------- */
.hc-footer { border-top: 1px solid var(--line-soft); padding: 60px 0 34px; font-size: 14px; background: rgba(4, 5, 6, .6); }
.hc-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.hc-footer h4 { font-size: 11.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.hc-footer ul { list-style: none; padding: 0; margin: 0; }
.hc-footer li { margin-bottom: 10px; }
.hc-footer a { color: var(--text-muted); }
.hc-footer a:hover { color: var(--glow); }
.hc-footer .brandline img { height: 40px; width: auto; margin-bottom: 16px; filter: drop-shadow(0 0 16px rgba(0, 194, 255, .35)); }
.hc-footer .brandline p { font-size: 13.5px; color: var(--text-faint); max-width: 300px; }
.hc-footer .legal { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--text-faint); font-size: 12.5px; text-align: center; }
.hc-footer .legal a { color: var(--text-faint); }

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1240px) and (min-width: 921px) {
  .hc-actions .btn-ghost { display: none; }
  .hc-header .wrap { gap: 16px; }
  .hc-nav a { padding: 8px 9px; letter-spacing: .1em; }
}
@media (max-width: 1080px) {
  .hc-nav a { padding: 8px 6px; letter-spacing: .05em; font-size: 12px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .hc-footer .cols { grid-template-columns: repeat(3, 1fr); }
  .hc-footer .brandline { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .hc-burger { display: grid; place-items: center; }
  .hc-nav, .hc-actions { display: none; }
  .hc-header.open { background: rgba(4, 5, 6, .97); }
  .hc-header.open .wrap { flex-wrap: wrap; height: auto; min-height: 70px; padding-top: 14px; padding-bottom: 18px; }
  .hc-header.open .hc-nav { display: flex; flex-direction: column; flex-basis: 100%; order: 3; margin: 12px 0 0; gap: 0; }
  .hc-header.open .hc-nav a { padding: 14px 4px; font-size: 14px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .hc-header.open .hc-actions { display: flex; flex-basis: 100%; order: 4; margin-top: 16px; }
  .hc-header.open .hc-actions .btn { flex: 1; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .tiles, .tiles.t3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  section { padding: 60px 0; }
  .hero { padding: 64px 0 50px; }
  .tiles.t2, .tiles.t3 { grid-template-columns: 1fr; }
  .tiles { gap: 12px; }
  .stats { gap: 18px 28px; }
  .stat b { font-size: 24px; }
  .btn-lg { padding: 18px 30px; font-size: 16px; width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .divider::before, .divider::after { width: 70px; }
  .spaced { letter-spacing: .26em; font-size: 12px; }
  .hc-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  #hc-particles { display: none; }
}

@keyframes emblem-float { 50% { transform: translateY(-6px); } }

/* ---------- Servicios ---------- */
.svc { padding: 80px 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 80px; }
.svc-head { text-align: center; max-width: 780px; margin: 0 auto 40px; }
.svc-head .ico { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; margin-bottom: 18px;
  color: var(--glow); background: var(--tile); border: 1px solid var(--line); filter: drop-shadow(0 0 14px rgba(0, 194, 255, .35)); }
.svc-head .ico svg { width: 30px; height: 30px; }
.svc-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-item { padding: 22px 22px 20px; border-radius: var(--radius); background: var(--tile); border: 1px solid var(--line);
  transition: border-color .3s ease, background .3s ease; }
.svc-item:hover { border-color: var(--line-hi); background: var(--tile-hi); }
.svc-item h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--text); }
.svc-item h4::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 10px 2px 0; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.svc-item p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.svc .notice { justify-content: center; text-align: center; }
.svc-form-wrap { padding-top: 90px; scroll-margin-top: 70px; }
.svc-form { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.svc-form .f-row { display: grid; gap: 16px; }
.svc-form .f-row.two { grid-template-columns: 1fr 1fr; }
.svc-form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--text-dim); }
.svc-form input, .svc-form select, .svc-form textarea {
  font: 400 15px/1.4 var(--font); color: var(--text); background: rgba(4, 5, 6, .6); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%; color-scheme: dark; transition: border-color .2s ease, box-shadow .2s ease; }
.svc-form textarea { resize: vertical; }
.svc-form input:focus, .svc-form select:focus, .svc-form textarea:focus { outline: none; border-color: rgba(0, 194, 255, .6); box-shadow: 0 0 0 3px rgba(0, 194, 255, .12); }
.svc-form .f-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text-muted); }
.svc-form .f-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--glow); }
.svc-form .btn { justify-self: center; }
.svc-form .trampa { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.f-msg { text-align: center; margin: 0; min-height: 1.4em; font-size: 14.5px; }
.f-msg.ok { color: #34d399; }
.f-msg.err { color: #f87171; }
.f-alt { text-align: center; margin: 0; font-size: 13.5px; }
@media (max-width: 920px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc { padding: 60px 0; } .svc-grid, .svc-form .f-row.two { grid-template-columns: 1fr; } }

/* botón flotante de WhatsApp (todas las páginas) */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px; color: #04121a; font-weight: 600; font-size: 15px; text-decoration: none;
  background: linear-gradient(135deg, #00c2ff, #0088b3); box-shadow: 0 8px 28px rgba(0,194,255,.35), 0 0 0 1px rgba(212,180,106,.55);
  transition: transform .2s, box-shadow .2s; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,194,255,.5), 0 0 0 1px #d4b46a; color: #04121a; }
.wa-float svg { flex: none; }
@media (max-width: 640px) { .wa-float { padding: 13px; right: 16px; bottom: 16px; } .wa-float span { display: none; } }

/* selector de idioma (lo añade i18n.py en la cabecera de todas las versiones) */
.lang-sw { position: relative; }
.lang-sw summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 100%;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-muted); font-size: 12px;
  font-weight: 600; letter-spacing: .12em; }
.lang-sw summary::-webkit-details-marker { display: none; }
.lang-sw summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lang-sw summary:hover, .lang-sw[open] summary { color: var(--glow); border-color: var(--line-hi); }
.lang-sw ul { position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: rgba(6, 12, 22, .98); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.lang-sw li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-muted); font-size: 14px; text-decoration: none; }
.lang-sw li a:hover { color: var(--text); background: var(--tile-hi); }
.lang-sw li a[aria-current] { color: var(--glow); }
[dir="rtl"] .lang-sw ul { right: auto; left: 0; }
@media (max-width: 920px) {
  .hc-header.open .lang-sw { flex-basis: 100%; }
  .hc-header.open .lang-sw ul { position: static; margin-top: 8px; display: grid; grid-template-columns: repeat(2, 1fr); box-shadow: none; }
}

/* escritura de derecha a izquierda (árabe) */
[dir="rtl"] .hc-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .wa-float { right: auto; left: 22px; }
[dir="rtl"] .svc-item, [dir="rtl"] .prose, [dir="rtl"] .tile { text-align: right; }
@media (max-width: 640px) { [dir="rtl"] .wa-float { left: 16px; } }

/* cabecera recogida: la pone site.js cuando el menú no cabe (idiomas con palabras largas) */
.hc-header.compacta .hc-burger { display: grid; place-items: center; margin-left: auto; }
[dir="rtl"] .hc-header.compacta .hc-burger { margin-left: 0; margin-right: auto; }
.hc-header.compacta .hc-nav, .hc-header.compacta .hc-actions { display: none; }
.hc-header.compacta.open { background: rgba(4, 5, 6, .97); }
.hc-header.compacta.open .wrap { flex-wrap: wrap; height: auto; min-height: 70px; padding-top: 14px; padding-bottom: 18px; }
.hc-header.compacta.open .hc-nav { display: flex; flex-direction: column; flex-basis: 100%; order: 3; margin: 12px 0 0; gap: 0; }
.hc-header.compacta.open .hc-nav a { padding: 14px 4px; font-size: 14px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
.hc-header.compacta.open .hc-actions { display: flex; flex-wrap: wrap; flex-basis: 100%; order: 4; margin-top: 16px; }
.hc-header.compacta.open .hc-actions .btn { flex: 1; display: inline-flex; }
.hc-header.compacta.open .lang-sw { flex-basis: 100%; }
.hc-header.compacta.open .lang-sw ul { position: static; margin-top: 8px; display: grid; grid-template-columns: repeat(2, 1fr); box-shadow: none; }
.hc-header .wrap { max-width: 1400px; }
