/* duxels-shared · chrome.css — header, idioma, footer, botón de WhatsApp y riel.
   Reglas sacadas TAL CUAL de public/mundo/mundo.css de DuxelsPage (commit 3dd0e87c); no se edita a mano:
   tools/extract-chrome-css.mjs. El menú de usuario está en ../user-menu/user-menu.css. */
:root {
  --bg: #0b1020;
  --bg2: #121a33;
  --fg: #e8ecf8;
  --mut: #a4adc8;
  --ia: #2a86ff;
  --sw: #f2f5ff; /* software */
  --xr: #f0392f; /* juegos + XR */
  --bc: #22b14c; /* blockchain */
  --line: rgba(232, 236, 248, 0.14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
a { color: inherit; }
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: grid;
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) clamp(14px, 4vw, 40px) 10px;
}
.top::before {
  content: "";
  position: absolute;
  inset: 0 0 -16px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.94), rgba(11, 16, 32, 0.7) 60%, rgba(11, 16, 32, 0));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.top nav { display: flex; align-items: center; justify-content: center; min-width: 0; gap: 18px; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--mut); }
.top nav a:hover { color: var(--fg); }
.top nav { gap: 12px; }
.top .ico {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  font: inherit; font-size: 0.85rem; color: var(--fg); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(18, 26, 51, 0.7);
}
.top .ico:hover { background: rgba(32, 44, 84, 0.9); color: #fff; }
.top .ico svg { flex: none; }
.top .dx-chat-nav[data-pending] { visibility: hidden; }
.top .dx-chat-nav[aria-expanded="true"] { background: rgba(32, 44, 84, 0.95); color: #fff; border-color: rgba(120, 170, 255, 0.6); }
.top .ico[hidden], .top [data-wa][hidden] { display: none; }
.top .ico:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.hint-pop {
  position: absolute; right: clamp(14px, 4vw, 40px); top: calc(100% + 6px); max-width: min(300px, calc(100vw - 28px));
  padding: 10px 14px; border-radius: 12px; font-size: 0.85rem; line-height: 1.4; color: var(--fg);
  background: rgba(14, 21, 42, 0.96); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.hint-pop[hidden] { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.btn svg { flex: none; display: block; }
.btn:hover { background: #fff; }
.btn.alt { background: transparent; color: var(--fg); }
.btn.alt:hover { background: rgba(232, 236, 248, 0.14); }
.btn[hidden] { display: none; }
.btn.sm { margin-top: 0; padding: 7px 16px; font-size: 0.85rem; }
.social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--mut); background: rgba(18, 26, 51, 0.6); }
.social a:hover { color: #fff; border-color: var(--fg); }
.foot .social { justify-content: center; }
button:focus-visible, .btn:focus-visible, a:focus-visible, [tabindex="-1"]:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
html.static .top::before {
  inset: 0; background: rgba(11, 16, 32, 0.96); border-bottom: 1px solid var(--line);
  -webkit-mask-image: none; mask-image: none;
}
@keyframes restart-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(120, 190, 255, 0); }
  50% { box-shadow: 0 0 14px 3px rgba(120, 190, 255, 0.55); }
}
@keyframes restart-nudge { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-35deg); } }
html.at-end #restart { animation: restart-glow 2.2s ease-in-out infinite; border-color: rgba(120, 190, 255, 0.7); }
html.at-end #restart svg { animation: restart-nudge 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  html.at-end #restart, html.at-end #restart svg { animation: none; }
}
.route { display: none; }
html.flight .route, html.static .route {
  position: fixed; right: clamp(6px, 1.4vw, 18px); top: calc(50% + 27px); transform: translateY(-50%); z-index: 15;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.route .rbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; margin: 0 0 6px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--fg); background: rgba(18, 26, 51, 0.7); cursor: pointer; text-decoration: none;
}
.route .rbtn:last-child { margin: 6px 0 0; }
@media (hover: hover) {
  .route .rbtn:hover { background: rgba(32, 44, 84, 0.9); color: #fff; }
  .route .rbtn:hover .tip, .route .dot:hover .tip { opacity: 1; transform: translate(0, -50%); }
  .route .dot:hover::before { background: var(--c); transform: scale(1.35); }
  .route .dot[data-gray]:hover::before { background: #0b1020; border-color: rgba(255, 255, 255, 0.9); }
}
.route .rbtn[data-active] { background: rgba(32, 44, 84, 0.95); color: #fff; border-color: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(11, 16, 32, 0.5), 0 0 10px 3px rgba(255, 255, 255, 0.55); }
#play .pause-icon, #play[aria-pressed="true"] .play-icon { display: none; }
#play[aria-pressed="true"] .pause-icon { display: block; }
#play[aria-pressed="true"] { color: #9cc7ff; border-color: #2a86ff; box-shadow: 0 0 14px rgba(42, 134, 255, 0.3); }
html.static #play { display: none; }
html.flight:not(.ready) #play { visibility: hidden; }
.route .rbtn { transition: transform 0.12s ease-out; }
.route .rbtn:active { transform: scale(0.88); }
.route .dot:active::before { transform: scale(1.9); }
.route .rbtn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.route .rbtn:focus-visible .tip { opacity: 1; transform: translate(0, -50%); }
.route .dot {
  position: relative; display: flex; align-items: center; justify-content: center; width: 26px; height: clamp(8px, calc((100svh - 316px) / 24), 22px); padding: 0;
  border: 0; background: none; cursor: pointer; color: var(--fg);
}
.route .dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--c) 72%, transparent);
  box-shadow: 0 0 0 1px rgba(11, 16, 32, 0.5); transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.route .dot:focus-visible::before { background: var(--c); transform: scale(1.35); }
.route .dot[aria-current="step"]::before { background: var(--c); transform: scale(1.7); box-shadow: 0 0 0 1px rgba(11, 16, 32, 0.5), 0 0 10px 3px var(--c); }
.route .dot:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; border-radius: 8px; }
.route .dot[data-gray]::before {
  box-sizing: border-box; width: 9px; height: 9px; background: #0b1020; border: 1.5px solid rgba(255, 255, 255, 0.55); box-shadow: none;
}
.route .dot[data-gray]:focus-visible::before { background: #0b1020; border-color: rgba(255, 255, 255, 0.9); }
.route .dot[data-gray][aria-current="step"]::before { background: #0b1020; border-color: #fff; box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.75); }
.route .dot[data-gray] .tip { background: #0b1020; border-color: rgba(255, 255, 255, 0.55); }
.route .tip {
  position: absolute; right: 100%; top: 50%; transform: translate(6px, -50%); margin-right: 4px; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; color: var(--fg); background: rgba(14, 21, 42, 0.95);
  border: 1px solid color-mix(in srgb, var(--c, var(--line)) 70%, transparent); opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
}
.route .dot:focus-visible .tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1000px) {
  .foot { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
.foot { position: relative; z-index: 10; background: var(--bg); text-align: center; padding: 24px 16px 40px; color: var(--mut); font-size: 0.85rem; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .top .ico { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .top .ico .lbl { display: none; }
}
@media (max-width: 640px) {
  html.flight .route, html.static .route { right: 0; }
  html.static .route { opacity: 0.7; }
  .route .dot { width: 26px; height: clamp(8px, calc((100svh - 304px) / 24), 20px); }
  .route .dot::before { width: 6px; height: 6px; }
  .route .dot[data-gray]::before { width: 8px; height: 8px; }
  .route .tip { display: none; }
  .route .rbtn { width: 26px; height: 26px; margin-bottom: 4px; }
  .route .rbtn:last-child { margin: 4px 0 0; }
  .route .rbtn svg { width: 13px; height: 13px; }
  .top nav { gap: 6px; }
  .top .ico { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .top .ico .lbl { display: none; }
  .brand { gap: 8px; }
  .brand span { font-size: 0.95rem; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .top { padding-left: 8px; padding-right: 8px; }
  .top nav { gap: 4px; }
  .top .ico { width: 32px; height: 32px; flex: none; }
}
@media (max-width: 360px) {
  .top nav { gap: 3px; }
  .top .ico { width: 30px; height: 30px; }
  .top .brand img { width: 28px; height: 28px; }
  .top { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 6px; }
}
@media (max-width: 640px) {
  html.static .top nav { gap: 3px; }
  html.static .top .ico { width: 32px; height: 32px; padding: 0; justify-content: center; }
  html.static .top .ico .lbl { display: none; }
}
.lang { position: relative; justify-self: end; }
.lang [hidden] { display: none; }
.lang-toggle {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  padding: 0; cursor: pointer; border: 0; border-radius: 8px; background: transparent;
}
.lang-name { display: none; }
.flag { display: block; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.lang-toggle:hover, .lang-toggle[aria-expanded="true"] { background: rgba(255,255,255,.08); }
.lang button:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; width: 204px; padding: 6px;
  border: 1px solid rgba(170,183,220,.24); border-radius: 14px; background: rgba(16,23,43,.98);
  box-shadow: 0 14px 42px rgba(0,0,0,.45); color: var(--fg);
}
.lang-menu button {
  display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 12px; border: 0;
  border-radius: 8px; text-align: left; font: inherit; font-size: .9rem; color: inherit;
  background: transparent; cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: rgba(105,135,220,.14); }
@media (max-width: 360px) {
  .lang-toggle { width: 30px; height: 30px; }
}
@media (min-width: 1001px) {
  .top { grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr); }
  .brand { justify-self: start; }
  .brand span { display: inline; }
  .top nav { justify-self: center; gap: 12px; }
  .lang { justify-self: end; }
  .lang-toggle { width: auto; min-width: 36px; gap: 9px; padding: 0 8px; }
  .lang-name { display: inline; font: inherit; font-size: .84rem; color: var(--mut); white-space: nowrap; }
}
@media (max-height: 420px) {
  html.static .route { display: none; }
}
@media (max-height: 640px) {
  .route .dot { height: clamp(8px, calc((100svh - 280px) / 24), 17px); }
  .route .rbtn { width: 22px; height: 22px; margin-bottom: 4px; }
  .route .rbtn:last-child { margin: 4px 0 0; }
}
@media (max-height: 600px) {
  html.flight .route, html.static .route { top: calc(50% + 28px); gap: 1px; }
  .route .dot { height: clamp(8px, calc((100svh - 233px) / 24), 18px); }
  .route .rbtn, .route .rbtn:last-child { margin: 0; }
}
@media (max-height: 420px) {
  html.flight .route { gap: 0; }
  .route .rbtn { width: 20px; height: 20px; }
  .route .dot { height: clamp(6px, calc((100svh - 190px) / 24), 18px); }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}
.foot .privacy { margin: 0; max-width: none; font-size: 0.75rem; opacity: 0.8; }
.foot .privacy-link { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; text-decoration: none; }
.foot .privacy-link:hover { color: #fff; background: var(--bg2); }
.foot .legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.foot .privacy-link:focus-visible, .privacy-page a:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 22px; padding: 12px 16px 14px; }
.foot p { margin: 0; }
.foot .social { margin: 0; gap: 4px; }
.foot .social a { width: 30px; height: 30px; }
.foot .social a svg { width: 16px; height: 16px; }
.foot .legacy { margin: 0; gap: 4px 16px; font-size: 0.82rem; }
.privacy-page .top::before { bottom: 0; background: rgba(11, 16, 32, .94); -webkit-mask-image: none; mask-image: none; border-bottom: 1px solid var(--line); }
.privacy-page .top .ico { width: auto; padding: 0 14px; height: 40px; }
.privacy-page .top .ico .lbl { display: inline; }
.status-page .top::before { background: rgba(0, 0, 0, .94); }
.status-page .foot { background: transparent; margin-top: 40px; }
.foot[hidden] { display: none; }
@media (max-width: 600px) {
  .privacy-page .top .ico { padding: 0 12px; max-width: 100%; font-size: .8rem; }
}
@media (max-width: 900px) {
  .account-page .top .ico { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .account-page .top .ico .lbl { display: none; }
}
@media (max-width: 1000px) {
  .account-page .top { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (max-width: 1000px) {
  .foot { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1001px) and (max-width: 1279px) {
  .top .ico { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .top .ico .lbl { display: none; }
}
