@font-face {
  font-family: 'Asap Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/asapcondensed/v18/pxieypY1o9NHyXh3WvSbGSggdO9TTGlE.ttf) format('truetype');
}
:root {
  --brand-primary: #111827;
  --brand-primaryHover: #0b1020;
  --brand-text: #0f172a;
  --brand-muted: #475569;
  --brand-danger: #b00020;
  --brand-bg1: #eaf3ff;
  --brand-bg2: #ffffff;
  --brand-brandBorder: rgba(255, 255, 255, 0.7);
  --brand-surface: #ffffff;
  --brand-inputBg: #f8fafc;
  --brand-inputBorder: #e5e7eb;
  --brand-inputPlaceholder: #94a3b8;
  --brand-glass: rgba(255, 255, 255, 0.72);
  --brand-glassBorder: rgba(255, 255, 255, 0.6);
  --brand-orbit1: rgba(147, 197, 253, 0.18);
  --brand-orbit2: rgba(147, 197, 253, 0.12);
  --brand-bgImg: none;
  --brand-bgImgOpacity: 0.5;
  --brand-bgVeil: rgba(255, 255, 255, 0);
  --wallet-nav-color-1: #3b82f6;
  --wallet-nav-color-2: #22c55e;
  --wallet-nav-color-3: #f59e0b;
  --wallet-nav-color-4: #a855f7;
  --wallet-nav-color-5: #ec4899;
  --wallet-nav-color-6: #06b6d4;
  --wallet-nav-color-7: #f97316;
  --wallet-nav-color-8: #10b981;
}
html {
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 15pt;
}
body,
section,
div,
table,
td,
ul,
ol,
li,
span,
header,
footer,
nav,
h1,
h2,
h3,
h4,
h5,
h6,
form,
p,
a,
button,
fieldset,
input,
textarea,
label {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-style: inherit;
  vertical-align: baseline;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
figcaption {
  white-space: normal;
  word-break: break-all;
  text-align: center;
}
#wallet-app {
  overflow-x: hidden;
}
.wallet-bg {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  padding: 28px 12px 32px;
  background: linear-gradient(180deg, var(--brand-bg1, #eaf3ff), var(--brand-bg2, #ffffff));
  overflow: hidden;
}
.wallet-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-bgImg, none) center / cover no-repeat;
  pointer-events: none;
}
.wallet-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-bgVeil, rgba(255, 255, 255, 0)), radial-gradient(800px 200px at 50% 80%, var(--brand-orbit1, rgba(147, 197, 253, 0.18)), transparent 70%) no-repeat, radial-gradient(1000px 220px at 50% 10%, var(--brand-orbit2, rgba(147, 197, 253, 0.12)), transparent 70%) no-repeat;
  background-blend-mode: normal;
  pointer-events: none;
}
.wallet-bg .brand-header {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  max-height: 160px;
}
.wallet-bg .brand-header a {
  display: block;
  width: 100%;
  height: 100%;
}
.wallet-bg .brand-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login-card {
  background: var(--brand-glass, rgba(255, 255, 255, 0.72));
  -webkit-backdrop-filter: blur(3px) saturate(120%);
  backdrop-filter: blur(3px) saturate(120%);
  border: 1px solid var(--brand-glassBorder, rgba(255, 255, 255, 0.6));
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  width: min(92vw, 440px);
  padding: 28px;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--brand-text, #0f172a);
}
.login-card .brand {
  width: 150px;
  height: 150px;
  margin: -6px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card .brand a {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.login-card .brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12.5%;
}
.login-card h1 {
  margin: 6px 0 2px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.login-card .subtitle {
  text-align: center;
  color: var(--brand-muted, #475569);
  font-size: 14px;
  margin-bottom: 16px;
}
.login-card form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.login-card form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.login-card form .field label {
  font-size: 12px;
  color: var(--brand-muted, #475569);
}
.login-card form .field .input-wrap {
  position: relative;
}
.login-card form .field .input-wrap input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  background: var(--brand-inputBg, #f8fafc);
  color: var(--brand-text, #0f172a);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  padding-left: 42px;
  padding-right: 42px;
}
.login-card form .field .input-wrap input:focus-visible {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
  background: var(--brand-surface, #ffffff);
}
.login-card form .field .input-wrap input:focus {
  box-shadow: none;
}
.login-card form .field .input-wrap input::placeholder {
  color: var(--brand-inputPlaceholder, #94a3b8);
}
.login-card form .field .input-wrap .left-icon,
.login-card form .field .input-wrap .right-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  padding: 0 10px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card form .field .input-wrap .left-icon {
  left: 0;
}
.login-card form .field .input-wrap .right-icon {
  right: 0;
}
.login-card form .field .input-wrap .toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  height: 100%;
  width: 38px;
}
.login-card form .field .helper {
  display: flex;
  justify-content: flex-end;
}
.login-card form .field .helper a {
  color: var(--brand-muted, #475569);
  font-size: 12px;
  text-decoration: none;
}
.login-card form .field .helper a:hover {
  text-decoration: underline;
}
.login-card form .helper {
  display: flex;
  justify-content: flex-end;
}
.login-card form .helper a {
  color: var(--brand-muted, #475569);
  font-size: 12px;
  text-decoration: none;
}
.login-card form .helper a:hover {
  text-decoration: underline;
}
.login-card form .submit {
  margin-top: 12px;
}
.login-card form .submit button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 0;
  font-weight: 700;
  background: var(--brand-primary, #111827);
  color: #fff;
  cursor: pointer;
  transition: transform 0.02s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.login-card form .submit button:hover {
  background: var(--brand-primaryHover, #0b1020);
}
.login-card form .submit button:active {
  transform: translateY(1px);
}
.login-card form .submit button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.login-card form .error {
  color: var(--brand-danger, #b00020);
  font-size: 13px;
  margin-top: 2px;
  min-height: 18px;
}
.login-card > .helper {
  display: flex;
  justify-content: center;
  margin: 6px 0 2px;
}
.login-card > .helper a {
  color: var(--brand-muted, #475569);
  font-size: 12px;
  text-decoration: none;
}
.login-card > .helper a:hover {
  text-decoration: underline;
}
.login-card .divider {
  margin: 9px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
}
.login-card .divider::before,
.login-card .divider::after {
  content: "";
  height: 1px;
  background: #e5e7eb;
  display: block;
  flex: 1;
}
.login-card .providers {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.login-card .providers button {
  background: var(--brand-glass, rgba(255, 255, 255, 0.72));
  -webkit-backdrop-filter: blur(3px) saturate(120%);
  backdrop-filter: blur(3px) saturate(120%);
  border: 1px solid var(--brand-glassBorder, rgba(255, 255, 255, 0.6));
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--brand-text, #0f172a);
  background: var(--brand-orbit2, rgba(147, 197, 253, 0.12));
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.02s;
}
.login-card .providers button:hover {
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.12);
}
.login-card .providers button:active {
  transform: translateY(1px);
}
.login-card .providers button img {
  width: 18px;
  height: 18px;
}
.login-card .providers button span {
  font-size: 14px;
  color: var(--brand-text, #0f172a);
}
/* ============== SHELL estilo “store” ============== */
.wallet-layout {
  --shell-header-height: 72px;
  --shell-header-offset: 12px;
  height: 100dvh;
  background: linear-gradient(180deg, var(--brand-bg1, #eaf3ff), var(--brand-bg2, #ffffff));
  display: flex;
  flex-direction: row;
  padding-left: 0;
}
.wallet-layout .content {
  flex: 1 1 auto;
  padding: calc(var(--shell-header-height, 72px) + var(--shell-header-offset, 12px) + 12px) 18px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
  width: 100%;
}
.wallet-layout .content .surface-topbar {
  width: calc(100% - (var(--shell-header-offset, 12px) * 2));
  min-height: var(--shell-header-height, 72px);
  padding: 10px 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: var(--shell-header-offset, 12px);
  left: var(--shell-header-offset, 12px);
  background: linear-gradient(90deg, var(--wallet-nav-color-1, #3b82f6), var(--wallet-nav-color-4, #a855f7));
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}
.wallet-layout .content .surface-topbar .top-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1 1 auto;
  width: auto;
  justify-content: flex-end;
}
.wallet-layout .content .surface-topbar .top-tools #shell-toolbar {
  flex: 1 1 auto;
}
.wallet-layout .content .surface-topbar .top-tools #shell-toolbar strong {
  font-size: 24px;
  color: #fff;
  margin: 0;
}
.wallet-layout .content .surface-topbar .top-tools #shell-toolbar .hint {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
}
.wallet-layout .content .surface-topbar .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}
.wallet-layout .content .surface-panel {
  border-radius: 18px;
  padding: 0 16px 0 16px;
  height: calc(100vh - 110px);
  margin-top: calc(var(--topbar-height, 70px) - 70px);
  overflow-x: hidden;
  overflow-y: auto;
}
.wallet-layout .content .surface-panel > section:first-of-type {
  min-height: calc(100% - 40px);
}
.wallet-layout .content .sharebox {
  position: relative;
}
.wallet-layout.achievement-detail-page .content {
  margin: 0;
  padding: 0;
}
.wallet-layout.achievement-detail-page .content .surface-topbar {
  display: none;
}
.wallet-layout.achievement-detail-page .content .surface-panel {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  overflow: visible;
}
.rail {
  position: static;
  inset: auto;
  height: auto;
  width: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  z-index: 10;
}
.rail:is(header) {
  inset: 10px auto 10px 10px;
  margin-top: 20px;
  height: 34px;
  width: calc(100% - 20px);
  flex-direction: row;
  justify-content: flex-start;
  overflow: visible;
  clip-path: none;
}
.rail:is(header) .rail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-text, #0f172a);
  margin-left: 12px;
  user-select: none;
  flex: 0 0 auto;
  text-overflow: ellipsis;
  max-width: calc(100vw - 400px);
  white-space: nowrap;
  overflow: hidden;
}
.rail .rail-button-logo {
  pointer-events: auto;
  background-color: transparent;
}
.rail .rail-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  object-fit: contain;
  object-position: center;
}
.rail .rail-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.rail .rail-toggle {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.02s;
  opacity: 0;
}
.rail .rail-toggle:hover {
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.08);
}
.rail .rail-toggle:active {
  transform: translateY(1px);
}
.rail .rail-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}
.rail .rail-toggle .rail-toggle-icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.18s;
}
.rail .rail-toggle .rail-toggle-icon::before,
.rail .rail-toggle .rail-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.18s, top 0.18s, opacity 0.18s;
}
.rail .rail-toggle .rail-toggle-icon::before {
  top: -6px;
}
.rail .rail-toggle .rail-toggle-icon::after {
  top: 6px;
}
.rail .rail-toggle[aria-expanded="true"] .rail-toggle-icon {
  background: transparent;
}
.rail .rail-toggle[aria-expanded="true"] .rail-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.rail .rail-toggle[aria-expanded="true"] .rail-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}
.rail .rail-menu {
  margin-top: 0;
}
.rail .rail-bottom {
  position: static;
  margin-left: auto;
}
.rail .rail-menu,
.rail .rail-bottom {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.rail .rail-item {
  min-width: auto;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  filter: none;
  opacity: 1;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(1, 3, 3, 0.02);
  transition: box-shadow 0.2s ease, transform 0.02s ease, background 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
  border: 0;
  box-shadow: none;
}
.rail .rail-item:hover {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
}
.rail .rail-item:active {
  transform: translateY(1px);
  border-color: var(--brand-inputBorder, #e5e7eb);
}
.rail .rail-item:hover {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0.9;
}
.rail .rail-item:active {
  background: transparent;
}
.rail .rail-item.active {
  border: 0;
  background: transparent;
  color: #fff;
}
.rail .rail-item.on {
  background: transparent;
  border-color: transparent;
}
.rail .rail-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.35);
}
.rail .rail-item-install {
  gap: 8px;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  padding: 8px 14px;
  border-radius: 14px;
}
.rail .rail-item-install:hover {
  background: rgba(255, 255, 255, 0.26);
}
.rail .rail-item-install:active {
  background: rgba(255, 255, 255, 0.32);
}
.rail .rail-item-install::after {
  content: none;
}
.rail .rail-item-install .rail-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}
.rail .rail-item-install svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.rail.rail-open .rail-toggle {
  opacity: 1;
}
.rail.rail-open .rail-toggle .rail-toggle-icon {
  background: transparent;
}
.rail.rail-open .rail-toggle .rail-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}
.rail.rail-open .rail-toggle .rail-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}
/* ============== Achievements como “store cards” ============== */
.ach-page .page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ach-page .page-head strong {
  font-size: 24px;
  color: var(--brand-text, #0f172a);
  margin: 0;
}
.ach-page .page-head .hint {
  font-size: 18px;
  color: var(--brand-muted, #475569);
}
.ach-page .page-head input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  background: var(--brand-inputBg, #f8fafc);
  color: var(--brand-text, #0f172a);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ach-page .page-head input[type="search"]:focus-visible {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
  background: var(--brand-surface, #ffffff);
}
.ach-page .page-head input[type="search"]:focus {
  box-shadow: none;
}
.ach-page .page-head input[type="search"]::placeholder {
  color: var(--brand-inputPlaceholder, #94a3b8);
}
.ach-page .state {
  padding: 24px 8px;
}
.ach-page .state.muted {
  color: var(--brand-muted, #475569);
}
.ach-page .state.error {
  color: var(--brand-danger, #b00020);
}
.ach-page .cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-items: center;
  max-width: calc(100% - 20px);
  margin: 0 auto;
}
.ach-page .cards-grid > .store-card {
  width: calc(20% - 14px);
}
.ach-page .achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  align-items: start;
  margin: 8px auto 0;
}
.ach-page .achievements-grid .achievement-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.ach-page .achievements-grid .achievement-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.ach-page .achievements-grid .achievement-btn:hover {
  transform: translateY(-3px);
}
.ach-page .achievements-grid .achievement-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-primary, #111827) 40%, transparent);
  outline-offset: 4px;
  border-radius: 14px;
}
.ach-page .achievements-grid .achievement-badge {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.ach-page .achievements-grid .achievement-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.38));
}
.ach-page .achievements-grid .achievement-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  max-width: 80%;
  gap: 6px;
}
.ach-page .achievements-grid .achievement-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-text, #0f172a);
  line-height: 1.25;
}
.ach-page .achievements-grid .achievement-date {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-muted, #475569);
}
.page-head-toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.page-head-toolbar .ph-left {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.page-head-toolbar .ph-left strong {
  font-size: 14px;
  color: var(--brand-text, #0f172a);
}
.page-head-toolbar .ph-left .hint {
  font-size: 12px;
  color: var(--brand-muted, #475569);
}
.page-head-toolbar .ph-right {
  flex: 0 0 300px;
  display: flex;
  justify-content: flex-end;
}
.page-head-toolbar .ph-right input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  background: var(--brand-inputBg, #f8fafc);
  color: var(--brand-text, #0f172a);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  padding: 12px 0 14px 12px;
  max-width: 55px;
}
.page-head-toolbar .ph-right input[type="search"]:focus-visible {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
  background: var(--brand-surface, #ffffff);
}
.page-head-toolbar .ph-right input[type="search"]:focus {
  box-shadow: none;
}
.page-head-toolbar .ph-right input[type="search"]::placeholder {
  color: var(--brand-inputPlaceholder, #94a3b8);
}
.page-head-toolbar .ph-right input[type="search"]:focus {
  width: 100%;
  max-width: none;
}
.page-head-toolbar .ph-right .search-compact {
  transition: width 0.2s ease, padding 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.store-card {
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.store-card .card-media {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin: 0;
}
.store-card .card-media img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.1));
}
.store-card .card-body {
  padding: 12px 16px 0;
  background: var(--brand-surface, #ffffff);
}
.store-card .card-body .card-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--brand-text, #0f172a);
  margin: 0 0 4px;
}
.store-card .card-body .card-subtitle {
  font-size: 13px;
  color: var(--brand-muted, #475569);
}
.store-card .card-body .pillbar {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.store-card .card-body .pillbar span {
  font-size: 12px;
  color: var(--brand-muted, #475569);
  background: #f8fafc;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 999px;
  padding: 3px 8px;
}
.store-card .progress-mini {
  margin: 12px 16px 0;
  height: 10px;
  border-radius: 999px;
  background: #f2f4f8;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  overflow: hidden;
}
.store-card .progress-mini .fill {
  --p: 1;
  width: calc(var(--p) * 100%);
  height: 100%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #111827) 92%, transparent), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 92%, transparent));
  transition: width 0.35s ease;
}
@supports (background: color-mix(in srgb, white 50%, black)) {
  .store-card .progress-mini .fill {
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #111827) 92%, transparent), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 92%, transparent));
  }
}
.store-card .card-actions {
  padding: 24px 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--brand-surface, #ffffff);
}
.store-card .card-actions .btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.02s;
}
.store-card .card-actions .btn:hover {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
}
.store-card .card-actions .btn:active {
  transform: translateY(1px);
}
.store-card .card-actions .btn-primary {
  border: 0;
  color: #fff !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #111827) 96%, transparent), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 96%, transparent)) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}
@supports (background: color-mix(in srgb, white 50%, black)) {
  .store-card .card-actions .btn-primary {
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #111827) 96%, transparent), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 96%, transparent));
  }
}
.store-card .sharebox {
  position: relative;
}
.store-card .share-menu {
  position: absolute;
  right: 0;
  bottom: 110%;
  top: auto;
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}
.store-card .share-menu button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: #fff;
  cursor: pointer;
  color: var(--brand-text, #0f172a);
}
.store-card .share-menu button:hover {
  background: #f5f7fb;
}
/* ===== Diploma card ===== */
.diploma-card {
  border: 0;
  position: relative;
}
.diploma-card .dc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 0;
  opacity: 0.9;
  font-size: 12px;
  letter-spacing: 0.3px;
  pointer-events: none;
}
.diploma-card .dc-hero {
  padding: 40px 14px 0;
  display: flex;
  justify-content: center;
  position: relative;
  pointer-events: none;
}
.diploma-card .dc-hero img {
  position: absolute;
  top: 0;
  width: 100%;
  max-width: 260px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
}
.diploma-card .dc-body {
  padding: 62px 14px 0;
  text-align: center;
  pointer-events: none;
}
.diploma-card .dc-body .dc-name {
  font-size: 20px;
  font-weight: 800;
  margin: 8px 0 2px;
}
.diploma-card .dc-body .dc-holder {
  font-size: 20px;
  font-weight: 800;
  margin: 8px 0 2px;
  border-top: 1px solid var(--brand-inputBorder, #e5e7eb);
  padding-top: 12px;
}
.diploma-card .dc-body .dc-sub {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}
.diploma-card .dc-body .dc-desc {
  font-size: 13px;
  opacity: 0.95;
  margin: 8px 0 10px;
}
.diploma-card .dc-body .dc-expand {
  float: right;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  display: none;
}
.diploma-card .dc-body .dc-expand:before {
  position: absolute;
  inset: 0;
  cursor: pointer;
  content: " ";
}
.diploma-card .dc-body .dc-kv {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 12px;
  font-size: 12px;
  text-align: left;
  margin-top: 18px;
  border-top: 1px solid var(--brand-inputBorder, #e5e7eb);
}
.diploma-card .dc-body .dc-kv dt {
  opacity: 0.9;
  margin-top: 12px;
}
.diploma-card .dc-body .dc-kv dd {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
}
.diploma-card .dc-actions {
  overflow: visible;
  padding: 28px 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--brand-inputBorder, #e5e7eb);
}
.diploma-card .dc-actions button,
.diploma-card .dc-actions a {
  flex: 0 0 26%;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.diploma-card .dc-actions button:visited,
.diploma-card .dc-actions a:visited {
  color: inherit;
}
.diploma-card .dc-actions button span,
.diploma-card .dc-actions a span {
  font-size: 12px;
  white-space: nowrap;
}
.diploma-card .dc-actions button.btn-primary,
.diploma-card .dc-actions a.btn-primary {
  color: #fff;
}
.diploma-card .dc-actions button.btn-primary svg,
.diploma-card .dc-actions a.btn-primary svg {
  fill: #fff;
}
.diploma-card .dc-actions img {
  width: 24px;
}
.diploma-card .dc-actions svg {
  width: 24px;
  fill: var(--brand-primary, #111827);
}
.diploma-card .dc-collapse {
  display: none;
  padding: 7px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
}
/* ====== Detalle de logro ====== */
.ach-detail-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  /* Tabs JSON */
  /* Índice (panel) */
  /* Secciones izquierda */
  /* ===== Tabs pill pequeñitas (Tabla / RAW) ===== */
  /* KV genérico para la columna izquierda */
  /* Pretty JSON (tabla ligera) */
  /* JSON Raw (oscuro) */
  /* ===== JSON tree table ===== */
  /* ===== JSON “tabla” compacta (con links) ===== */
}
.ach-detail-content .detail-back {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  color: #fff;
}
.ach-detail-content .detail-back .btn {
  color: inherit;
}
.ach-detail-content .detail-body {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0 18px;
}
.ach-detail-content .side {
  width: 280px;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}
.ach-detail-content .main {
  flex: 1 1 auto;
  min-width: 0;
}
.ach-detail-content .hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 16px;
}
.ach-detail-content .hero-main {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
}
.ach-detail-content .hero-badge {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.ach-detail-content .hero-badge img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}
.ach-detail-content .hero-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ach-detail-content .hero-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-muted, #475569);
}
.ach-detail-content .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--brand-text, #0f172a);
}
.ach-detail-content .meta-chip {
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}
.ach-detail-content .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ach-detail-content .hero-actions .btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(1, 3, 3, 0.02);
  transition: box-shadow 0.2s ease, transform 0.02s ease, background 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  font-size: 13px;
}
.ach-detail-content .hero-actions .btn:hover {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
}
.ach-detail-content .hero-actions .btn:active {
  transform: translateY(1px);
  border-color: var(--brand-inputBorder, #e5e7eb);
}
.ach-detail-content .hero-actions .btn-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-primary, #111827) 0%, var(--brand-primaryHover, #0b1020) 100%);
}
.ach-detail-content .hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 36px;
}
.ach-detail-content .achievement-hero {
  position: relative;
  border-radius: 0;
  padding: 36px 24px 36px 100px;
  margin-left: -72px;
  color: #fff;
  width: calc(100% + 72px);
  background-image: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--brand-primary, #111827) 45%, transparent) 0%, transparent 55%), var(--achievement-hero-gradient, linear-gradient(135deg, #0b163a 0%, #27348b 45%, #5b2b8d 100%)), var(--hero-image);
  background-size: cover, cover, 260px;
  background-position: center, center, center 28%;
  background-repeat: no-repeat;
  background-blend-mode: screen, normal, soft-light;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
}
.ach-detail-content .hero-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.ach-detail-content .achievement-hero .hero-badge {
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  filter: none;
  box-shadow: none;
}
.ach-detail-content .achievement-hero .hero-badge img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.5));
}
.ach-detail-content .hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  color: var(--achievement-hero-text, #fff);
  max-width: min(840px, 90vw);
}
.ach-detail-content .hero-type {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.9;
}
.ach-detail-content .hero-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
}
.ach-detail-content .hero-date {
  font-size: 14px;
  opacity: 0.85;
}
.ach-detail-content .hero-validity {
  display: flex;
  justify-content: center;
}
.ach-detail-content .validity-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35), inset 0 0 18px rgba(255, 255, 255, 0.15);
  animation: pulseGlow 2.6s ease-in-out infinite;
}
.ach-detail-content .validity-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}
.ach-detail-content .validity-pill small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: none;
}
.ach-detail-content .validity-pill.expired {
  background: rgba(185, 28, 28, 0.28);
  border-color: rgba(252, 165, 165, 0.7);
  color: #fee2e2;
}
.ach-detail-content .validity-pill.expired .dot {
  background: #f97316;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.95);
}
.ach-detail-content .achievement-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: transparent;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(1, 3, 3, 0.02);
  transition: box-shadow 0.2s ease, transform 0.02s ease, background 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  border: 0;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  min-width: 0;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(6px);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn:hover {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn:active {
  transform: translateY(1px);
  border-color: var(--brand-inputBorder, #e5e7eb);
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn .hero-ico {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn .hero-ico svg {
  width: 18px;
  height: 18px;
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn .hero-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn .hero-text small {
  font-size: 8px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn .hero-text strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn-verify {
  color: #1e293b;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(226, 239, 255, 0.95));
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn-verify .hero-ico {
  color: var(--brand-primary, #111827);
  background: rgba(255, 255, 255, 0.9);
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn-download {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary, #111827) 85%, #fff 15%), color-mix(in srgb, var(--brand-primary, #111827) 85%, #000 15%));
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn-pdf {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary, #111827) 85%, #fff 15%), color-mix(in srgb, var(--brand-primary, #111827) 85%, #000 15%));
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn-vc {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary, #111827) 85%, #fff 15%), color-mix(in srgb, var(--brand-primary, #111827) 85%, #000 15%));
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn-badge {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary, #111827) 85%, #fff 15%), color-mix(in srgb, var(--brand-primary, #111827) 85%, #000 15%));
}
.ach-detail-content .achievement-hero .hero-actions .hero-btn-share {
  width: 100%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primaryHover, #0b1020) 100%, #fff 100%), color-mix(in srgb, var(--brand-primary, #111827) 80%, #fff 20%));
}
.ach-detail-content .share-menu {
  z-index: 3;
}
.ach-detail-content .share-menu .share-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  color: var(--brand-primary, #111827);
}
.ach-detail-content .share-menu .share-ico svg {
  width: 18px;
  height: 18px;
}
.ach-detail-content .detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 6px 0 0;
  position: relative;
}
.ach-detail-content .detail-tabs:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brand-inputBorder, #e5e7eb);
  z-index: 1;
}
.ach-detail-content .detail-tabs button {
  background: #eef2f7;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-bottom: 0;
  font-size: 13px;
  color: var(--brand-muted, #475569);
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 12px 12px 0 0;
  position: relative;
  top: 4px;
}
.ach-detail-content .detail-tabs button.active {
  color: var(--brand-text, #0f172a);
  background: #fff;
  border-color: var(--brand-inputBorder, #e5e7eb);
  top: 0;
  font-weight: 700;
  z-index: 2;
}
.ach-detail-content .main .block {
  margin-top: 0;
  border-radius: 18px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-top-left-radius: 0;
  background: #fff;
  padding: 18px;
}
.ach-detail-content .panel.identity,
.ach-detail-content .panel.qr-panel {
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.ach-detail-content .panel.identity a,
.ach-detail-content .panel.qr-panel a {
  text-align: center;
}
.ach-detail-content .panel.identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.ach-detail-content .panel.identity .issuer-logo {
  width: 80%;
  height: auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 8px auto 10px auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.ach-detail-content .panel.identity .issuer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ach-detail-content .panel.identity .label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-muted, #475569);
  margin-bottom: 6px;
}
.ach-detail-content .panel.identity .label.student {
  margin-top: 40px;
}
.ach-detail-content .panel.identity .name {
  font-weight: 700;
  color: var(--brand-text, #0f172a);
  margin-bottom: 4px;
}
.ach-detail-content .panel.identity .registration {
  font-size: 12px;
  color: var(--brand-muted, #475569);
  margin-bottom: 8px;
}
.ach-detail-content .panel.identity .desc {
  font-size: 13px;
  color: var(--brand-muted, #475569);
  margin-bottom: 6px;
}
.ach-detail-content .panel.identity .link {
  font-size: 12px;
  color: var(--brand-primary, #111827);
  word-break: break-all;
}
.ach-detail-content .panel.qr-panel .brand-header-preview {
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 12px auto;
  width: 160px;
}
.ach-detail-content .panel.qr-panel .brand-header-preview img {
  width: 100%;
  max-height: 86px;
  object-fit: cover;
  display: block;
}
.ach-detail-content .panel.qr-panel .qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}
.ach-detail-content .panel.qr-panel .qr img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}
.ach-detail-content .panel.qr-panel .actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ach-detail-content .panel.qr-panel .powered-by {
  font-size: 11px;
  color: var(--brand-muted, #475569);
  text-align: center;
}
.ach-detail-content .panel.qr-panel .powered-by a {
  color: var(--brand-primary, #111827);
  text-decoration: none;
}
.ach-detail-content .info-card {
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.ach-detail-content .info-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-muted, #475569);
  margin-bottom: 6px;
}
.ach-detail-content .info-card .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-text, #0f172a);
}
.ach-detail-content .info-card .desc {
  font-size: 12px;
  color: var(--brand-muted, #475569);
  margin-top: 6px;
}
.ach-detail-content .info-card .link {
  display: inline-flex;
  margin-top: 6px;
  font-size: 12px;
}
.ach-detail-content .tech-details {
  margin-top: 18px;
  border-radius: 16px;
  border: 1px dashed var(--brand-inputBorder, #e5e7eb);
  background: #f8fafc;
  padding: 10px 12px;
}
.ach-detail-content .tech-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-text, #0f172a);
}
.ach-detail-content .tech-details .tech-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ach-detail-content .tech-details .tech-body .block {
  margin: 0;
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 14px;
  padding: 14px;
}
.ach-detail-content .right {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(100dvh - 20px - 100vh);
  /* --- SUMMARY --- */
  /* --- INDEX / TOC --- */
}
.ach-detail-content .right .panel {
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.ach-detail-content .right .summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  /* pares clave/valor compactos */
}
.ach-detail-content .right .summary .badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  position: relative;
  /* “marco” suave para la insignia */
}
.ach-detail-content .right .summary .badge::before {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.ach-detail-content .right .summary .badge img {
  position: relative;
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
  z-index: 1;
}
.ach-detail-content .right .summary .who {
  text-align: center;
}
.ach-detail-content .right .summary .who .k {
  color: var(--brand-muted, #475569);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 11px;
  margin-bottom: 2px;
}
.ach-detail-content .right .summary .who .v {
  color: var(--brand-text, #0f172a);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}
.ach-detail-content .right .summary .kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 10px;
  padding-top: 2px;
}
.ach-detail-content .right .summary .kv .k {
  color: var(--brand-muted, #475569);
  font-size: 12px;
  align-self: center;
}
.ach-detail-content .right .summary .kv .v {
  color: var(--brand-text, #0f172a);
  font-size: 13px;
  align-self: center;
}
.ach-detail-content .right .summary .sharebox {
  margin: 0 auto;
  display: none;
}
.ach-detail-content .right .index {
  /* mismo look & feel que los links anteriores */
}
.ach-detail-content .right .index h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--brand-text, #0f172a);
}
.ach-detail-content .right .index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ach-detail-content .right .index button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: #fff;
  color: var(--brand-text, #0f172a);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  /* puntito indicador a la izquierda */
}
.ach-detail-content .right .index button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  flex: 0 0 8px;
}
.ach-detail-content .right .index button:hover {
  background: #f5f7fb;
}
.ach-detail-content .right .index button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.ach-detail-content .right .index button.active {
  background: #f8fafc;
  font-weight: 700;
}
.ach-detail-content .right .index button.active::before {
  background: var(--brand-text, #0f172a);
}
.ach-detail-content .ginfo .ginfo-section {
  --ginfo-accent: var(--brand-primary, #111827);
  margin: 50px 0;
}
.ach-detail-content .ginfo .ginfo-section:first-of-type {
  margin-top: 30px;
}
.ach-detail-content .ginfo .ginfo-section > h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-text, #0f172a);
  letter-spacing: 0.02em;
}
.ach-detail-content .ginfo .ginfo-list {
  list-style: none;
  margin: 10px 0 6px;
  padding: 0;
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px 16px;
}
.ach-detail-content .ginfo .ginfo-list > li {
  display: grid;
  grid-template-columns: 28px 1fr 4fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-left: 3px solid var(--ginfo-accent, var(--brand-primary, #111827));
  border-radius: 12px;
  background: #fff;
}
.ach-detail-content .ginfo .ginfo-list > li.long-text .v {
  grid-column-start: 1;
  grid-column-end: 4;
}
.ach-detail-content .ginfo .ginfo-list > li:nth-child(8n + 1) {
  --ginfo-accent: var(--wallet-nav-color-1, #3b82f6);
}
.ach-detail-content .ginfo .ginfo-list > li:nth-child(8n + 2) {
  --ginfo-accent: var(--wallet-nav-color-2, #22c55e);
}
.ach-detail-content .ginfo .ginfo-list > li:nth-child(8n + 3) {
  --ginfo-accent: var(--wallet-nav-color-3, #f59e0b);
}
.ach-detail-content .ginfo .ginfo-list > li:nth-child(8n + 4) {
  --ginfo-accent: var(--wallet-nav-color-4, #a855f7);
}
.ach-detail-content .ginfo .ginfo-list > li:nth-child(8n + 5) {
  --ginfo-accent: var(--wallet-nav-color-5, #ec4899);
}
.ach-detail-content .ginfo .ginfo-list > li:nth-child(8n + 6) {
  --ginfo-accent: var(--wallet-nav-color-6, #06b6d4);
}
.ach-detail-content .ginfo .ginfo-list > li:nth-child(8n + 7) {
  --ginfo-accent: var(--wallet-nav-color-7, #f97316);
}
.ach-detail-content .ginfo .ginfo-list > li:nth-child(8n + 8) {
  --ginfo-accent: var(--wallet-nav-color-8, #10b981);
}
.ach-detail-content .ginfo .ginfo-list > li .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ginfo-accent, var(--brand-primary, #111827)) 12%, #fff);
}
.ach-detail-content .ginfo .ginfo-list > li .ico svg {
  width: 16px;
  height: 16px;
  color: var(--ginfo-accent, var(--brand-primary, #111827));
}
.ach-detail-content .ginfo .ginfo-list > li .k {
  color: var(--brand-muted, #475569);
  font-size: 12px;
  padding-top: 4px;
}
.ach-detail-content .ginfo .ginfo-list > li .v {
  color: var(--brand-text, #0f172a);
  font-size: 13px;
  padding-top: 4px;
  word-break: break-word;
}
.ach-detail-content .ginfo .ginfo-list > li .criteria-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ach-detail-content .ginfo .ginfo-list > li .criteria-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.ach-detail-content .ginfo .ginfo-list > li .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ach-detail-content .ginfo .ginfo-list > li .pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #111827) 96%, transparent), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 96%, transparent));
}
@supports (background: color-mix(in srgb, white 50%, black)) {
  .ach-detail-content .ginfo .ginfo-list > li .pill {
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #111827) 96%, transparent), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 96%, transparent));
  }
}
.ach-detail-content .ginfo .ginfo-list > li .pill.light {
  color: var(--brand-text, #0f172a);
  background: #EEF2FF;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
}
.ach-detail-content .hd .title {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-text, #0f172a);
  margin: 0 0 6px;
}
.ach-detail-content .hd .meta {
  color: var(--brand-muted, #475569);
  font-size: 13px;
}
.ach-detail-content .desc {
  margin: 12px 0;
  color: var(--brand-text, #0f172a);
}
.ach-detail-content .course-intro {
  display: grid;
  gap: 6px;
  margin: 6px 0 12px;
}
.ach-detail-content .course-intro .course-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-text, #0f172a);
}
.ach-detail-content .course-intro .course-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}
.ach-detail-content .chips-block {
  margin-top: 40px;
  display: grid;
  gap: 6px;
}
.ach-detail-content .chips-block .chips-label {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ach-detail-content .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.ach-detail-content .chips .chip {
  background: #f8fafc;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  color: var(--brand-muted, #475569);
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 10px;
}
.ach-detail-content .chips .chip-alt {
  background: rgba(15, 118, 110, 0.12);
  border-color: rgba(15, 118, 110, 0.35);
  color: #0f766e;
}
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35), inset 0 0 18px rgba(255, 255, 255, 0.12);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45), inset 0 0 22px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
  }
}
.ach-detail-content .list {
  margin-top: 8px;
}
.ach-detail-content .list h4 {
  font-size: 14px;
  color: var(--brand-text, #0f172a);
  margin: 14px 0 8px;
}
.ach-detail-content .list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.ach-detail-content .list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--brand-text, #0f172a);
}
.ach-detail-content .list li svg {
  color: var(--brand-primary, #111827);
  flex: 0 0 auto;
  margin-top: 2px;
}
.ach-detail-content .panel {
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 18px;
  padding: 14px;
}
.ach-detail-content .panel h4 {
  margin-bottom: 0.75rem;
}
.ach-detail-content .summary .badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.ach-detail-content .summary .badge img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
}
.ach-detail-content .summary .who {
  text-align: center;
  margin-bottom: 10px;
}
.ach-detail-content .summary .who .k {
  color: var(--brand-muted, #475569);
  font-size: 12px;
}
.ach-detail-content .summary .who .v {
  color: var(--brand-text, #0f172a);
  font-weight: 700;
}
.ach-detail-content .summary dl.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 10px;
  margin: 10px 0 0;
}
.ach-detail-content .summary dl.kv dt {
  color: var(--brand-muted, #475569);
  font-size: 12px;
  margin: 0;
}
.ach-detail-content .summary dl.kv dd {
  margin: 0;
  color: var(--brand-text, #0f172a);
  font-size: 13px;
}
.ach-detail-content .json-toggle {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.ach-detail-content .json-toggle .btn.active {
  border-color: var(--brand-primary, #111827);
}
.ach-detail-content .index h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--brand-text, #0f172a);
}
.ach-detail-content .index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ach-detail-content .index a {
  color: var(--brand-text, #0f172a);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
}
.ach-detail-content .index a:hover {
  text-decoration: underline;
}
.ach-detail-content .preview .qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 10px;
}
.ach-detail-content .preview .qr img {
  width: 164px;
  height: 164px;
  image-rendering: pixelated;
  border-radius: 12px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: #fff;
  padding: 6px;
}
.ach-detail-content .preview .qr figcaption {
  margin-top: 6px;
  color: var(--brand-muted, #475569);
  font-size: 11px;
  word-break: break-all;
  text-align: center;
}
.ach-detail-content .preview .row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.ach-detail-content .preview .about {
  display: none;
}
.ach-detail-content .block {
  margin: 20px 0 26px;
  scroll-margin-top: 90px;
  padding-top: 6px;
  border-top: 1px solid var(--brand-inputBorder, #e5e7eb);
}
.ach-detail-content .block .block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ach-detail-content .block .block-head h3 {
  margin: 0;
  flex: 0 0 auto;
}
.ach-detail-content .block .block-head .links {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
}
.ach-detail-content .block .block-head .links a,
.ach-detail-content .block .block-head .links button {
  font-size: 12px;
  color: var(--brand-text, #0f172a);
  background: #f8fafc;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 999px;
  padding: 4px 10px;
  text-decoration: none;
}
.ach-detail-content .block .block-head .links a:hover,
.ach-detail-content .block .block-head .links button:hover {
  background: #f2f6fb;
}
.ach-detail-content .block .block-head .tabs.small {
  flex: 0 0 auto;
}
.ach-detail-content .tabs.small {
  display: inline-flex;
  gap: 6px;
  margin: 8px 0 10px;
}
.ach-detail-content .tabs.small button {
  padding: 4px 10px;
  font-size: 11.5px;
  border-radius: 999px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.ach-detail-content .tabs.small button:hover {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.06);
}
.ach-detail-content .tabs.small button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #111827) 96%, transparent), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 96%, transparent));
}
@supports (background: color-mix(in srgb, white 50%, black)) {
  .ach-detail-content .tabs.small button.active {
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #111827) 96%, transparent), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 96%, transparent));
  }
}
.ach-detail-content .block dl.kv {
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: grid;
  grid-template-columns: 220px 1fr;
  margin: 10px 0 0;
}
.ach-detail-content .block dl.kv dt,
.ach-detail-content .block dl.kv dd {
  padding: 10px 12px;
  margin: 0;
}
.ach-detail-content .block dl.kv dt {
  background: #f8fafc;
  border-right: 1px solid var(--brand-inputBorder, #e5e7eb);
  color: var(--brand-muted, #475569);
  font-size: 12px;
}
.ach-detail-content .block dl.kv dd {
  color: var(--brand-text, #0f172a);
  font-size: 13px;
  border-top: 1px solid var(--brand-inputBorder, #e5e7eb);
}
.ach-detail-content .block dl.kv dt + dd {
  border-top: 1px solid var(--brand-inputBorder, #e5e7eb);
}
.ach-detail-content .json-pretty {
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
}
.ach-detail-content .json-pretty dl.kv {
  border: none;
  border-radius: 0;
  margin: 0;
}
.ach-detail-content .json-pretty dl.kv dt {
  background: transparent;
  border-right: none;
  color: var(--brand-muted, #475569);
}
.ach-detail-content .json-pretty dl.kv dd,
.ach-detail-content .json-pretty dl.kv dt {
  border-top: none;
  padding-top: 6px;
  padding-bottom: 6px;
}
.ach-detail-content .json-view {
  margin: 10px 0 12px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  background: #0b1020;
  color: #e6edf3;
  padding: 10px;
  overflow: auto;
  max-height: calc(100vh - 200px);
  position: relative;
  max-width: calc(100vw - 84px);
}
.ach-detail-content .json-view .json-tools {
  position: sticky;
  top: 8px;
  left: 0;
  display: flex;
  gap: 6px;
  z-index: 1;
  justify-content: flex-end;
}
.ach-detail-content .json-view .json-tools .btn.small {
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 8px;
  /* Contraste sobre fondo oscuro */
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  color: var(--brand-text, #0f172a);
}
.ach-detail-content .json-view pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}
.ach-detail-content .json-tree {
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}
.ach-detail-content .json-tree .jt-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #e6f0ff;
  color: #0b1f3a;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.ach-detail-content .json-tree .jt-head > div {
  padding: 8px 10px;
}
.ach-detail-content .json-tree .jt-row {
  --depth: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  border-top: 1px solid var(--brand-inputBorder, #e5e7eb);
}
.ach-detail-content .json-tree .jt-row .jt-key,
.ach-detail-content .json-tree .jt-row .jt-val {
  padding: 8px 10px;
}
.ach-detail-content .json-tree .jt-row .jt-key {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.ach-detail-content .json-tree .jt-row .jt-key .jt-indent {
  width: calc(var(--depth) * 14px);
  flex: 0 0 auto;
  height: 1px;
}
.ach-detail-content .json-tree .jt-row .jt-key .jt-toggle {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: #fff;
  color: var(--brand-text, #0f172a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: box-shadow 0.2s ease, transform 0.02s ease, background 0.2s ease;
}
.ach-detail-content .json-tree .jt-row .jt-key .jt-toggle:hover {
  box-shadow: 0 6px 12px rgba(2, 6, 23, 0.08);
}
.ach-detail-content .json-tree .jt-row .jt-key .jt-toggle:active {
  transform: translateY(1px);
}
.ach-detail-content .json-tree .jt-row .jt-key .jt-k {
  color: var(--brand-text, #0f172a);
}
.ach-detail-content .json-tree .jt-row .jt-key .jt-summary {
  margin-left: auto;
  font-size: 11px;
  color: var(--brand-muted, #475569);
  background: #eef2ff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 999px;
  padding: 1px 6px;
}
.ach-detail-content .json-tree .jt-row .jt-val {
  color: var(--brand-text, #0f172a);
  word-break: break-word;
}
.ach-detail-content .json-tree .jt-row .jt-val a {
  color: var(--brand-primary, #111827);
  text-decoration: none;
}
.ach-detail-content .json-tree .jt-row .jt-val a:hover {
  text-decoration: underline;
}
.ach-detail-content .kv-table {
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  word-break: break-word;
  /* PDF contenedor común (si se usa) */
}
.ach-detail-content .kv-table.compact .kv {
  grid-template-columns: 220px 1fr;
}
.ach-detail-content .kv-table .kv {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-top: 1px solid var(--brand-inputBorder, #e5e7eb);
}
.ach-detail-content .kv-table .kv:first-child {
  border-top: 0;
}
.ach-detail-content .kv-table .kv .k {
  padding: 8px 10px;
  background: #f5f7fb;
  border-right: 1px solid var(--brand-inputBorder, #e5e7eb);
  color: var(--brand-muted, #475569);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ach-detail-content .kv-table .kv .v {
  padding: 8px 10px;
  color: var(--brand-text, #0f172a);
  font-size: 13px;
  word-break: break-word;
}
.ach-detail-content .kv-table .kv .v a {
  color: var(--brand-primary, #111827);
  text-decoration: none;
}
.ach-detail-content .kv-table .kv .v a:hover {
  text-decoration: underline;
}
.ach-detail-content .kv-table .kv .v code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ach-detail-content .kv-table .pdf-view {
  margin: 12px 0 16px;
  height: 520px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.ach-detail-content .kv-table .pdf-view iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
/* Botones */
.btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(1, 3, 3, 0.02);
  transition: box-shadow 0.2s ease, transform 0.02s ease, background 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}
.btn:hover {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
}
.btn:active {
  transform: translateY(1px);
  border-color: var(--brand-inputBorder, #e5e7eb);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transition: box-shadow 0.2s ease, transform 0.02s ease, background 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}
.btn.ghost:hover {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
}
.btn.ghost:active {
  transform: translateY(1px);
  border-color: transparent;
}
.btn-primary {
  border: 0;
  color: #fff !important;
  /* usa colores LESS estáticos para evitar el error de fade() con variables CSS */
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #111827) 96%, transparent), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 96%, transparent)) !important;
}
@supports (background: color-mix(in srgb, white 50%, black)) {
  .btn-primary {
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #111827) 96%, transparent), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 96%, transparent)) !important;
  }
}
/* ---- Modal de verificación con stepper ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
}
/* ===== Credenciales (no-Achievement) ===== */
.cred-page .state {
  padding: 24px 8px;
}
.cred-page .state.muted {
  color: var(--brand-muted, #475569);
}
.cred-page .state.error {
  color: var(--brand-danger, #b00020);
}
.cred-page .cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-items: center;
}
.cred-page .cards-grid > .store-card {
  width: 25%;
}
@media (max-width: 1280px) {
  .cred-page .cards-grid > .store-card {
    width: 33.33%;
  }
}
@media (max-width: 900px) {
  .cred-page .cards-grid > .store-card {
    width: 50%;
  }
}
@media (max-width: 600px) {
  .cred-page .cards-grid > .store-card {
    width: 100%;
  }
}
/* ======== Cards tipo ID (inspiración Asgard) ======== */
.cred-card {
  width: 360px;
  max-width: 100%;
  border-radius: 22px;
  background: radial-gradient(120% 120% at 80% 10%, rgba(30, 58, 138, 0.06), transparent 60%), linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* líneas suaves del fondo */
}
.cred-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(30, 58, 138, 0.06) 0deg 6deg, transparent 6deg 12deg);
  mask-image: radial-gradient(200% 120% at 70% 0%, rgba(0, 0, 0, 0.25), transparent 60%);
}
.cred-card .cred-hd {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px 16px;
}
.cred-card .cred-hd .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cred-card .cred-hd .brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
}
.cred-card .cred-hd .brand .brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: color-mix(in srgb, var(--brand-primary, #111827) 92%, black);
}
.cred-card .cred-hd .cred-code {
  font-size: 12px;
  color: var(--brand-muted, #475569);
}
.cred-card .cred-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  padding: 10px 16px 16px 16px;
}
.cred-card .cred-body .avatar {
  margin: 0;
  width: 100px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: #fff;
}
.cred-card .cred-body .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cred-card .cred-body .kv {
  margin: 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 10px;
  column-gap: 10px;
}
.cred-card .cred-body .kv dt {
  color: color-mix(in srgb, var(--brand-primary, #111827) 92%, black);
  opacity: 0.85;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.2;
}
.cred-card .cred-body .kv dd {
  margin: 0;
  color: var(--brand-text, #0f172a);
  font-size: 14px;
  line-height: 1.2;
}
.cred-card .cred-body .kv dd.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #111827;
  word-break: break-all;
}
.cred-card .cred-body .kv dd .pill {
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: #f8fafc;
  color: var(--brand-muted, #475569);
}
.cred-card .cred-body .kv dd .pill.light {
  background: #fff;
}
/* grid contenedor (opcional) */
/* ===== Credenciales (lista estilo ID card) ===== */
/* ---------- Credencial vertical (brand-aware, sin underscores, clases anidadas) ---------- */
.vcCard {
  width: 100%;
  max-width: min(320px, calc(100vw - 52px));
  gap: 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  background: var(--brand-surface, #ffffff);
  color: var(--brand-text, #0f172a);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.vcCard::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(ellipse at center, var(--brand-orbit1, rgba(147, 197, 253, 0.18)), transparent 60%);
  pointer-events: none;
}
.vcCard .idcard-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.vcCard .idcard-bg img {
  object-position: center;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.vcCard > div:not(.sharePop) {
  position: relative;
  z-index: 1;
}
.vcCard .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.vcCard .top .brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.vcCard .top .brand .logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}
.vcCard .top .brand .issuer {
  display: grid;
}
.vcCard .top .brand .issuer .issuerName {
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-text, #0f172a);
}
.vcCard .top .brand .issuer .serial {
  font-size: 12px;
  color: var(--brand-muted, #475569);
}
.vcCard .body {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.vcCard .body .photoWrap {
  width: 84px;
  height: 104px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  background: var(--brand-bg1, #eaf3ff);
  margin-bottom: 12px;
}
.vcCard .body .photoWrap .photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vcCard .body .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-primary, #111827);
}
.vcCard .body .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-text, #0f172a);
  line-height: 1.25;
}
.vcCard .body .cols {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px 12px;
}
.vcCard .body .cols > div {
  flex: 0 0 50%;
}
.vcCard .body .rows {
  padding-top: 12px;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}
.vcCard .body .meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 8px;
  margin-top: 30px;
}
.vcCard .body .meta a {
  flex: 0 0 30%;
  text-align: left;
  font-size: 12px;
  color: var(--brand-primary, #111827);
  background: var(--brand-orbit2, rgba(147, 197, 253, 0.12));
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 999px;
  padding: 4px 10px;
  text-decoration: none;
}
.vcCard .body .meta a:hover {
  background: #f2f6fb;
}
.vcCard .footer {
  display: flex;
  gap: 8px;
  margin-top: 30px;
  justify-content: flex-end;
  position: relative;
}
.vcCard .footer .share-menu {
  position: absolute;
  right: 0;
  top: auto;
  bottom: 110%;
}
.vcCard .footer > .btn {
  padding: 8px 10px;
  font-size: 13px;
}
.vcCard .footer > .btn:not(.ghost):not(.link) {
  background: var(--brand-primary, #111827);
  color: #fff;
}
.vcCard .footer > .btn:not(.ghost):not(.link):hover {
  background: var(--brand-primaryHover, #0b1020);
}
.vcCard .footer > .btn.ghost {
  background: var(--brand-bg1, #eaf3ff);
  color: var(--brand-text, #0f172a);
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
}
.vcCard .footer > .btn.link {
  background: transparent;
  color: var(--brand-primary, #111827);
}
/* Grid contenedor */
.cardsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  justify-items: center;
}
/* Share popover */
.share-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.share-menu a,
.share-menu button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: #fff;
  cursor: pointer;
  color: var(--brand-text, #0f172a);
}
.share-menu a:hover,
.share-menu button:hover {
  background: #f5f7fb;
}
/* Inputs / util */
.inp {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--brand-inputBg, #f8fafc);
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  color: var(--brand-text, #0f172a);
}
.inp::placeholder {
  color: var(--brand-inputPlaceholder, #94a3b8);
}
/* Contenedores de página */
.surface {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.surfaceHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.surfaceHeader .title {
  color: var(--brand-text, #0f172a);
}
.surfacePanel {
  overflow: auto;
  padding-right: 4px;
}
.detail-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  flex-wrap: wrap;
}
.detail-toolbar .spacer {
  flex: 1 1 auto;
}
.ach-detail .surface-topbar {
  background: transparent;
  box-shadow: none;
}
.ach-detail .wallet-layout .content {
  padding: 0;
}
.ach-detail .wallet-layout .surface-panel {
  margin: 0;
  padding: 0;
  border-radius: 0;
}
.ach-detail .detail-toolbar .btn,
.ach-detail .detail-toolbar .btn.ghost {
  background: transparent;
  color: var(--achievement-hero-text, #fff);
  border-color: rgba(255, 255, 255, 0.25);
}
.ach-detail .detail-toolbar .btn.btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.loading,
.error {
  padding: 12px;
  color: var(--brand-text, #0f172a);
}
.profile__grid {
  display: flex;
  gap: 16px;
}
.profile .left {
  flex: 1 1 0;
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 18px;
  padding: 18px;
}
.profile .right {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile .hd .title {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-text, #0f172a);
  margin: 0 0 6px;
}
.profile .meta {
  color: var(--brand-muted, #475569);
  font-size: 13px;
}
.profile .block {
  margin: 36px 0 22px;
}
.profile .block h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
}
.profile .block p {
  font-size: 12px;
  line-height: 1.45;
}
.profile .block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.profile .links a {
  font-size: 12px;
  color: var(--brand-text, #0f172a);
  text-decoration: none;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 999px;
  padding: 4px 10px;
}
.profile .links .link-primary {
  background: linear-gradient(90deg, var(--brand-primary, #111827) 0%, var(--brand-primaryHover, #0b1020) 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.profile .panel {
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
}
.profile .ginfo-list {
  list-style: none;
  margin: 10px 0 6px;
  padding: 0;
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px 16px;
}
.profile .ginfo-list li {
  display: grid;
  grid-template-columns: 28px 1fr 4fr;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-left: 3px solid var(--ginfo-accent, var(--brand-primary, #111827));
  border-radius: 12px;
  background: #fff;
}
.profile .ginfo-list li:nth-child(8n + 1) {
  --ginfo-accent: var(--wallet-nav-color-1, #3b82f6);
}
.profile .ginfo-list li:nth-child(8n + 2) {
  --ginfo-accent: var(--wallet-nav-color-2, #22c55e);
}
.profile .ginfo-list li:nth-child(8n + 3) {
  --ginfo-accent: var(--wallet-nav-color-3, #f59e0b);
}
.profile .ginfo-list li:nth-child(8n + 4) {
  --ginfo-accent: var(--wallet-nav-color-4, #a855f7);
}
.profile .ginfo-list li:nth-child(8n + 5) {
  --ginfo-accent: var(--wallet-nav-color-5, #ec4899);
}
.profile .ginfo-list li:nth-child(8n + 6) {
  --ginfo-accent: var(--wallet-nav-color-6, #06b6d4);
}
.profile .ginfo-list li:nth-child(8n + 7) {
  --ginfo-accent: var(--wallet-nav-color-7, #f97316);
}
.profile .ginfo-list li:nth-child(8n + 8) {
  --ginfo-accent: var(--wallet-nav-color-8, #10b981);
}
.profile .ginfo-list li .ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ginfo-accent, var(--brand-primary, #111827)) 12%, #fff);
}
.profile .ginfo-list li .ico svg {
  width: 16px;
  height: 16px;
  color: var(--ginfo-accent, var(--brand-primary, #111827));
}
.profile .ginfo-list li .k {
  color: var(--brand-muted, #475569);
  font-size: 12px;
  padding-top: 4px;
}
.profile .ginfo-list li .v {
  color: var(--brand-text, #0f172a);
  font-size: 13px;
  padding-top: 4px;
  word-break: break-word;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.profile .ginfo-list li .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.profile .kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 12px;
}
.profile .kv dt {
  color: var(--brand-muted, #475569);
  font-size: 12px;
  padding-top: 4px;
}
.profile .kv dd {
  color: var(--brand-text, #0f172a);
  font-size: 13px;
  padding-top: 4px;
  word-break: break-word;
}
.profile .kv.kv--icons dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.profile .kv.kv--icons .ico {
  width: 18px;
  height: 18px;
  color: var(--brand-primary, #111827);
  /* usa tu var de marca */
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile .kv.kv--icons .ico svg {
  width: 100%;
  height: 100%;
  display: block;
}
.profile .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: break-spaces;
  word-break: break-all;
}
.profile .muted {
  color: var(--brand-muted, #475569);
}
.profile .summary {
  text-align: center;
}
.profile .summary .avatar .circle {
  width: 84px;
  height: 84px;
  margin: 6px auto 10px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #f5f7fb;
  color: var(--brand-text, #0f172a);
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  font-size: 22px;
}
.profile .summary .who .v {
  font-weight: 700;
  color: var(--brand-text, #0f172a);
}
.profile .summary .who .k {
  color: var(--brand-muted, #475569);
  font-size: 12px;
}
.profile .summary .kv {
  margin-top: 10px;
  grid-template-columns: auto 1fr;
  font-size: 12px;
  text-align: left;
}
.profile .summary .kv .k {
  color: var(--brand-muted, #475569);
  font-size: 12px;
  align-self: center;
}
.profile .summary .kv .v {
  color: var(--brand-text, #0f172a);
  font-size: 13px;
  align-self: center;
}
.profile .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.profile .row .btn {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: transparent;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(1, 3, 3, 0.02);
  transition: box-shadow 0.2s ease, transform 0.02s ease, background 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
  border: 0;
  font-weight: 700;
  font-size: 12px;
  color: var(--brand-text, #0f172a);
  background: rgba(15, 23, 42, 0.04);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(6px);
}
.profile .row .btn:hover {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
}
.profile .row .btn:active {
  transform: translateY(1px);
  border-color: var(--brand-inputBorder, #e5e7eb);
}
.profile .row .btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand-primary, #111827) 0%, var(--brand-primaryHover, #0b1020) 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}
.profile .row .btn.ghost {
  color: var(--brand-text, #0f172a);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  box-shadow: none;
}
.profile .secret {
  padding: 10px;
  border: 1px dashed var(--brand-inputBorder, #e5e7eb);
  border-radius: 10px;
  background: #fff;
}
.profile .btn.xs {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 8px;
  margin-left: 8px;
}
/* ==== Perfil: recuperar clave privada (sin fade) ==== */
.profile-recover {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 94vw);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 28px 68px rgba(2, 6, 23, 0.24);
  /* Campo en pila (label + input) */
  /* Aviso de seguridad */
  /* Acciones (por si pones botones dentro) */
  /* Resultado/clave (si la muestras después) */
}
.profile-recover header {
  padding: 18px 22px 14px;
}
.profile-recover header h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: #111827;
}
.profile-recover header .close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: all 0.15s ease;
}
.profile-recover header .close:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
.profile-recover .content {
  max-width: 100%;
  background: #fff;
  margin: 0;
  padding: 8px 22px 16px;
}
.profile-recover .content p {
  margin: 0 0 12px;
  color: var(--brand-text, #0f172a);
  line-height: 1.55;
  font-size: 15px;
  font-weight: 500;
}
.profile-recover .content .muted {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}
.profile-recover label.stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0 8px;
}
.profile-recover label.stack > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-muted, #475569);
  letter-spacing: 0.02em;
}
.profile-recover label.stack > input[type="password"] {
  height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-text, #0f172a);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  /* Reemplazo de fade(@c-muted,60%): color + opacity */
  /* Reemplazo de halo con fade(@c-primary,15%) */
}
.profile-recover label.stack > input[type="password"]::placeholder {
  color: var(--brand-muted, #475569);
  /* o var(--brand-muted, #8E6F62) si prefieres */
  opacity: 0.6;
}
.profile-recover label.stack > input[type="password"]:focus {
  border-color: var(--brand-primary, #111827);
  /* Fallback con el primario #881F22 al 15% */
  box-shadow: 0 0 0 3px rgba(136, 31, 34, 0.15);
  /* Si hay soporte de color-mix, usa la var si la tienes definida */
}
@supports (color: color-mix(in srgb, white, black)) {
  .profile-recover label.stack > input[type="password"]:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary, #881F22) 15%, transparent);
  }
}
.profile-recover .content .warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--brand-danger-300, rgba(181, 30, 44, 0.3));
  background: var(--brand-danger-50, rgba(181, 30, 44, 0.06));
  color: var(--brand-danger-700, #7a1a1a);
  font-size: 13px;
  font-weight: 600;
}
.profile-recover .content .warn:before {
  content: "⚠";
  line-height: 1;
  font-size: 14px;
  margin-top: 1px;
  opacity: 0.85;
}
.profile-recover .content .err {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}
.profile-recover footer {
  padding: 14px 22px 18px;
  border-top: 1px solid #f1f5f9;
}
.profile-recover footer .btn {
  min-height: 42px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 11px;
  padding: 10px 14px;
}
.profile-recover .content .actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  /* Reemplazo del gradient con fade(...) */
}
.profile-recover .content .actions .btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.02s;
  box-shadow: 0 8px 18px rgba(1, 3, 3, 0.02);
}
.profile-recover .content .actions .btn:hover {
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.08);
}
.profile-recover .content .actions .btn:active {
  transform: translateY(1px);
}
.profile-recover .content .actions .btn-primary {
  border: 0;
  color: #fff;
  /* Fallback fijo con primary #881F22 en distintas opacidades */
  background: linear-gradient(90deg, rgba(136, 31, 34, 0.96), rgba(136, 31, 34, 0.86));
  /* Versión con color-mix usando CSS var si existe */
}
@supports (background: color-mix(in srgb, red, transparent)) {
  .profile-recover .content .actions .btn-primary {
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #881F22) 96%, transparent), color-mix(in srgb, var(--brand-primary, #881F22) 86%, transparent));
  }
}
.profile-recover .content .result {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  background: #fff;
}
.profile-recover .content .result code {
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: var(--brand-text, #0f172a);
}
.about {
  float: right;
  font-size: 12px;
  margin-top: 20px;
  text-align: right;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: 0.125rem;
}
.about img {
  max-height: 20px;
  margin-right: 20px;
}
.about a {
  color: black;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-family: "Asap Condensed", sans-serif;
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
}
.about a:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('../img/imago_mini.png');
}
.about a:visited,
.about a:hover,
.about a:active {
  color: var(--brand-primaryHover, #0b1020);
}
.about.stiky {
  position: sticky;
  inset: auto 20px 20px auto;
  font-size: 14px;
}
.public {
  padding-left: 18px;
}
.public .credPage {
  display: flex;
  justify-content: center;
  align-items: center;
}
.public .credPage .diploma-card {
  min-width: calc(20% - 14px);
  max-width: min(420px, calc(100vw - 20px));
}
.public .credPage .diploma-card .about {
  background-color: transparent;
  color: #111827;
  margin-top: 0;
  padding: 0 10px 20px 0;
}
.public-full .public {
  padding-left: 0;
}
.public-full .wallet-layout {
  padding-left: 0;
}
.public-full .wallet-layout .content {
  padding: 0;
}
.public-full .wallet-layout .content .surface-panel {
  padding: 0;
  margin-top: 0;
  height: auto;
  border-radius: 0;
}
/* Responsive */
@media (max-width: 640px) {
  .idcard {
    grid-template-columns: 96px 1fr;
  }
  .idcard .idcard-kv {
    grid-template-columns: 140px 1fr;
  }
}
/* Responsivo */
@media (max-width: 540px) {
  .cred-card .cred-body {
    grid-template-columns: 80px 1fr;
  }
  .cred-card .cred-body .avatar {
    width: 80px;
    height: 80px;
  }
  .cred-card .cred-body .kv {
    grid-template-columns: 130px 1fr;
  }
}
.modal {
  position: fixed;
  inset: 10% auto auto 50%;
  transform: translateX(-50%);
  width: min(640px, 92vw);
  background: #fff;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.25);
  z-index: 1001;
  display: flex;
  flex-direction: column;
}
.modal .content .stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal .content .warn {
  color: #8a4b0f;
  font-size: 12px;
}
.modal .content .err {
  color: #b51e2c;
  font-size: 12px;
}
.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--brand-inputBorder, #e5e7eb);
}
.modal header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--brand-text, #0f172a);
}
.modal header .close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}
.modal .stepper {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 62vh;
  overflow-y: auto;
}
.modal .stepper li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--brand-inputBorder, #e5e7eb);
  border-radius: 12px;
  padding: 10px;
}
.modal .stepper li .title {
  font-weight: 700;
  color: var(--brand-text, #0f172a);
}
.modal .stepper li .desc {
  color: var(--brand-muted, #475569);
  font-size: 13px;
  margin: 0;
}
.modal .stepper li .how {
  color: var(--brand-muted, #475569);
}
.modal .stepper li .right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal .stepper li .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
}
.modal .stepper li .badge svg {
  width: 12px;
  height: 12px;
  display: block;
}
.modal .stepper li.pending .badge,
.modal .stepper li.running .badge {
  background: #f59e0b;
}
.modal .stepper li.fail .badge {
  background: #dc2626;
}
.modal .stepper li .left {
  flex: 1 1 auto;
  min-width: 0;
}
.modal .stepper li .right {
  flex: 0 0 auto;
  margin-left: auto;
}
.modal .stepper li .substeps {
  width: 100%;
  flex-basis: 100%;
  margin-top: 6px;
}
.modal .stepper.stepper-sub {
  padding: 0;
  max-height: none;
  gap: 8px;
}
.modal .stepper.stepper-sub li {
  width: 100%;
}
.modal footer {
  padding: 12px 14px;
  border-top: 1px solid var(--brand-inputBorder, #e5e7eb);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
/* Modal de verificacion (publica y privada) */
.modal.verify-modal {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 94vw);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.2);
}
.modal.verify-modal header {
  padding: 18px 22px 14px;
}
.modal.verify-modal header h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}
.modal.verify-modal header .close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease;
}
.modal.verify-modal header .close:hover {
  background: #f1f5f9;
  color: #64748b;
}
.modal.verify-modal .stepper {
  padding: 10px 22px 4px;
  gap: 8px;
  max-height: 60vh;
}
.modal.verify-modal .stepper > li {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  gap: 10px;
}
.modal.verify-modal .stepper > li .left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.modal.verify-modal .stepper > li .title {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #1f2937;
}
.modal.verify-modal .stepper > li .desc {
  font-size: 13px;
  line-height: 1.3;
  color: #7b8da3;
  font-weight: 600;
}
.modal.verify-modal .stepper > li .badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 0 0 8px #e9f7ef;
}
.modal.verify-modal .stepper > li.pending .badge,
.modal.verify-modal .stepper > li.running .badge {
  background: #0f8f45;
  box-shadow: 0 0 0 8px #e9f7ef;
}
.modal.verify-modal .stepper > li.fail .badge {
  background: #dc2626;
  box-shadow: 0 0 0 8px #fee2e2;
}
.modal.verify-modal .stepper > li .substeps {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}
.modal.verify-modal .stepper > li .substeps .stepper.stepper-sub {
  gap: 2px;
}
.modal.verify-modal .stepper > li .substeps .stepper.stepper-sub li {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 7px 0;
}
.modal.verify-modal .stepper > li .substeps .stepper.stepper-sub li .title {
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0;
}
.modal.verify-modal .stepper > li .substeps .stepper.stepper-sub li .badge {
  width: 18px;
  height: 18px;
  box-shadow: none;
}
.modal.verify-modal .guided-verify {
  padding: 8px 22px 6px;
  max-height: 60vh;
  overflow: auto;
}
.modal.verify-modal .guided-verify .guided-head .guided-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
}
.modal.verify-modal .guided-verify .guided-head h4 {
  margin: 4px 0 8px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
}
.modal.verify-modal .guided-verify .guided-head .guided-progress {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 8px;
}
.modal.verify-modal .guided-verify .guided-head .guided-progress .bar {
  height: 100%;
  border-radius: 999px;
  background: var(--brand-primary, #111827);
  transition: width 0.25s ease;
}
.modal.verify-modal .guided-verify .guided-head .guided-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  background: #f1f5f9;
  color: #475569;
}
.modal.verify-modal .guided-verify .guided-head .guided-status.ok {
  background: #dcfce7;
  color: #15803d;
}
.modal.verify-modal .guided-verify .guided-head .guided-status.fail {
  background: #fee2e2;
  color: #b91c1c;
}
.modal.verify-modal .guided-verify .guided-head .guided-status.running {
  background: #dbeafe;
  color: #1d4ed8;
}
.modal.verify-modal .guided-verify .guided-head p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
}
.modal.verify-modal .guided-verify .guided-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.modal.verify-modal .guided-verify .card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  overflow: auto;
}
.modal.verify-modal .guided-verify .card h5 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.modal.verify-modal .guided-verify .card .facts-list {
  display: grid;
  gap: 8px;
}
.modal.verify-modal .guided-verify .card .facts-list .fact-row {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px 10px;
}
.modal.verify-modal .guided-verify .card .facts-list .fact-label {
  display: block;
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #64748b;
}
.modal.verify-modal .guided-verify .card .facts-list .fact-value {
  display: flex;
  align-items: center;
  min-height: 24px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}
.modal.verify-modal .guided-verify .card .facts-list .fact-value a {
  color: var(--brand-primary, #111827);
  text-decoration: none;
}
.modal.verify-modal .guided-verify .card .facts-list .fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.modal.verify-modal .guided-verify .card .facts-list .fact-pill.success {
  color: #166534;
}
.modal.verify-modal .guided-verify .card .facts-list .fact-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.modal.verify-modal .guided-verify .card .link-list {
  display: grid;
  gap: 8px;
}
.modal.verify-modal .guided-verify .card .link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand-primary, #111827) 28%, #ffffff);
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary, #111827) 90%, #ffffff 10%), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 90%, #ffffff 10%));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.14);
  transition: transform 0.05s ease, filter 0.2s ease;
}
.modal.verify-modal .guided-verify .card .link-list a:hover {
  filter: brightness(1.03);
}
.modal.verify-modal .guided-verify .card .link-list a:active {
  transform: translateY(1px);
}
.modal.verify-modal .guided-verify .card .link-list .muted {
  font-size: 12px;
  color: #64748b;
}
.modal.verify-modal footer {
  padding: 12px 22px 18px;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.modal.verify-modal footer .btn {
  width: auto;
  min-width: 112px;
  min-height: 36px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.modal.verify-modal footer .btn-secondary {
  background: linear-gradient(90deg, #e0ecff, #cfe2ff);
  color: #133c8c;
  border-color: #abc8ff;
}
.modal.verify-modal footer .btn-guided-open {
  min-height: 32px;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary, #111827), var(--brand-primaryHover, #0b1020));
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary, #111827) 50%, #000000);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.14);
}
.modal.verify-modal footer .btn[id="verify-guided-next"],
.modal.verify-modal footer .btn[onclick*="nextInteractiveStep"],
.modal.verify-modal footer .btn:not(.btn-secondary):not([onclick*="openInteractiveVerify"]) {
  background: linear-gradient(90deg, var(--brand-primary, #111827), var(--brand-primaryHover, #0b1020));
  color: #fff;
  border-color: color-mix(in srgb, var(--brand-primary, #111827) 50%, #000000);
}
@media (max-width: 720px) {
  .modal.verify-modal {
    width: min(560px, 96vw);
    border-radius: 12px;
  }
  .modal.verify-modal header h3 {
    font-size: 21px;
  }
  .modal.verify-modal .stepper > li .title {
    font-size: 15px;
  }
  .modal.verify-modal .stepper > li .desc {
    font-size: 11px;
  }
  .modal.verify-modal .guided-verify .guided-grid,
  .modal.verify-modal .guided-verify .compare-card .compare-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Responsivo ===== */
@media (max-width: 1440px) {
  .ach-page .cards-grid > .store-card {
    width: 25%;
  }
}
@media (max-width: 1024px) {
  .ach-page .cards-grid > .store-card {
    width: 33%;
  }
  .ach-detail-content {
    align-items: stretch;
  }
  .ach-detail-content .detail-body {
    flex-direction: column;
  }
  .ach-detail .side,
  .ach-detail .main {
    width: 100%;
    flex-basis: auto;
  }
  .wallet-layout .content .surface-panel {
    height: auto;
    overflow-y: auto;
  }
}
@media (max-width: 980px) {
  .ach-detail-content .preview .about {
    display: flex;
  }
  .ach-detail .left {
    max-width: 100%;
  }
  .ach-detail .right {
    position: static;
    top: auto;
    max-height: none;
  }
  .ach-detail .hero-card {
    grid-template-columns: 1fr;
  }
  .ach-detail .hero-main {
    grid-template-columns: 80px 1fr;
  }
  .ach-detail .achievement-hero {
    padding: 24px;
    width: 100%;
    margin-left: 0;
  }
  .ach-detail .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ach-detail .achievement-hero .hero-badge {
    width: 270px;
    height: 270px;
  }
  .ach-detail .achievement-hero .hero-badge img {
    width: 240px;
    height: 240px;
  }
  .ach-detail .hero-title {
    font-size: 24px;
  }
  .ach-detail .block dl.kv {
    grid-template-columns: 160px 1fr;
  }
  .ach-detail .ginfo .ginfo-list {
    grid-template-columns: 1fr;
  }
  .ach-detail .kv-table .kv {
    grid-template-columns: 160px 1fr;
  }
  .ach-detail .kv-list li {
    grid-template-columns: 130px 1fr;
  }
  .profile .profile__grid {
    flex-direction: column-reverse;
  }
  .profile .profile__grid .right {
    flex: 0 0 auto;
  }
}
@media (max-width: 720px), (orientation: portrait) {
  .wallet-layout {
    padding-left: 0;
    --shell-header-height: 64px;
    --shell-header-offset: 8px;
  }
  .wallet-layout .content {
    padding-left: 0;
    padding-right: 0;
  }
  .wallet-layout .content .surface-topbar {
    width: calc(100% - (var(--shell-header-offset, 8px) * 2));
    left: var(--shell-header-offset, 8px);
  }
  .wallet-layout .content .surface-topbar .top-tools {
    align-items: flex-start;
  }
  .wallet-layout .content .surface-topbar .top-tools #shell-toolbar {
    width: 100%;
  }
  .wallet-layout.achievement-detail-page .content .surface-topbar {
    left: var(--shell-header-offset, 8px);
  }
  .ach-detail .detail-back .btn {
    font-size: 18px;
    padding: 10px 14px;
  }
  .rail {
    gap: 10px;
    z-index: 10;
  }
  .rail .rail-toggle {
    display: inline-flex;
    opacity: 1;
  }
  .rail .rail-menu {
    display: none;
    position: absolute;
    top: calc(var(--shell-header-height, 64px) - 6px);
    left: 10px;
    right: 10px;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--brand-primary, #111827) 2%, transparent), color-mix(in srgb, var(--brand-primaryHover, #0b1020) 2%, transparent));
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.35);
  }
  .rail .rail-menu > button:not(.rail-item-install) {
    background: linear-gradient(145deg, color-mix(in srgb, var(--brand-primaryHover, #0b1020) 92%, transparent), color-mix(in srgb, var(--brand-primary, #111827) 92%, transparent));
  }
  .rail .rail-item {
    justify-content: flex-start;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.08);
  }
  .rail .rail-item.active {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  }
  .rail .rail-item.active::after {
    content: none;
  }
  .rail .rail-item-install {
    background: linear-gradient(135deg, var(--brand-primary, #111827) 0%, var(--brand-primaryHover, #0b1020) 100%) !important;
    color: #fff;
    border: 0;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.28);
  }
  .rail.rail-open .rail-menu {
    display: flex;
  }
  .page-head-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .page-head-toolbar .ph-left .hint {
    display: none;
  }
  .page-head-toolbar .ph-right {
    flex-basis: auto;
    margin-top: 7px;
    margin-left: 10px;
  }
  .page-head-toolbar .page-head-toolbar .ph-right input[type="search"]:focus {
    max-width: calc(100% - 20px);
  }
  .page-head-toolbar .ph-right .search-compact {
    max-width: 38px;
    width: 38px;
    padding-left: 34px;
    padding-right: 10px;
    color: transparent;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%2394a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px 16px;
  }
  .page-head-toolbar .ph-right .search-compact::placeholder {
    color: transparent;
  }
  .page-head-toolbar .ph-right .search-compact:focus {
    width: 100%;
    color: var(--brand-text, #0f172a);
    cursor: text;
    background-image: none;
  }
  .page-head-toolbar .ph-right .search-compact:focus::placeholder {
    color: var(--brand-inputPlaceholder, #94a3b8);
  }
  .btn.ghost span {
    display: none;
  }
  .ach-page .cards-grid > .store-card {
    width: calc(50% - 9px);
  }
  .ach-page .cards-grid .diploma-card.is-compact {
    padding: 14px 16px;
    gap: 14px;
  }
  .ach-page .cards-grid .diploma-card.is-compact .dc-hero {
    width: 92px;
    min-width: 92px;
  }
  .ach-page .cards-grid .diploma-card.is-compact .dc-hero img {
    width: 86px;
    height: 86px;
  }
  .ach-page .cards-grid .diploma-card.is-compact .dc-body .dc-name {
    font-size: 20px;
  }
  .ach-page .cards-grid .diploma-card.is-compact .dc-body .dc-sub {
    font-size: 16px;
  }
  .diploma-card {
    flex-direction: row;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .diploma-card .dc-header {
    display: none;
    transition: all 0.2s;
    pointer-events: all;
  }
  .diploma-card .dc-hero {
    transition: all 0.2s;
    padding: 0;
    margin: 0 auto;
    pointer-events: all;
  }
  .diploma-card .dc-hero img {
    position: relative;
    height: auto;
    width: 75%;
    max-height: 120px;
    transition: all 0.2s;
  }
  .diploma-card .dc-body {
    padding: 14px;
    text-align: left;
    flex: 1 1 auto;
    transition: all 0.2s;
    pointer-events: all;
  }
  .diploma-card .dc-body .dc-expand {
    display: block;
    transition: all 0.2s;
    margin-bottom: 20px;
  }
  .diploma-card .dc-body .dc-kv {
    transition: all 0.2s;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    gap: 0;
    margin: 0;
    border: none;
  }
  .diploma-card .dc-actions {
    transition: all 0.2s;
    display: none;
  }
  .diploma-card.is-expanded {
    flex-direction: column;
    transition: all 0.5s ease-in-out;
  }
  .diploma-card.is-expanded .dc-header {
    display: flex;
    transition: all 0.5s ease-in-out;
  }
  .diploma-card.is-expanded .dc-hero {
    padding: 40px 14px 0;
    margin: 20px 40px;
    transition: all 0.5s ease-in-out;
  }
  .diploma-card.is-expanded .dc-hero img {
    position: absolute;
    width: 100%;
    height: 120px;
    max-height: initial;
    transition: all 0.5s ease-in-out;
  }
  .diploma-card.is-expanded .dc-body {
    padding: 62px 14px 0;
    text-align: center;
    flex: initial;
    transition: all 0.5s ease-in-out;
  }
  .diploma-card.is-expanded .dc-body .dc-expand {
    display: none;
    transition: all 0.5s ease-in-out;
  }
  .diploma-card.is-expanded .dc-body .dc-kv {
    overflow: initial;
    max-height: initial;
    padding: initial;
    gap: 6px 12px;
    margin: 18px 0 12px 0;
    border-top: 1px solid var(--brand-inputBorder, #e5e7eb);
    transition: all 0.5s ease-in-out;
  }
  .diploma-card.is-expanded .dc-actions {
    display: flex;
    transition: all 0.5s ease-in-out;
  }
  .diploma-card.is-expanded .dc-collapse {
    display: block;
    transition: all 0.5s ease-in-out;
  }
  .diploma-card.is-expanded .about {
    bottom: 20px !important;
    background-color: transparent !important;
  }
  .ach-detail-content {
    flex-direction: column;
  }
  .ach-detail-content .preview .about {
    display: flex;
  }
  .ach-detail .right {
    order: -1;
    flex-basis: auto;
  }
  .ach-detail .kv-table .kv {
    grid-template-columns: 120px 1fr;
  }
  .ach-detail .pdf-view {
    height: 420px;
  }
  .public .credPage .diploma-card .dc-body {
    padding: 14px 14px 35px 14px;
  }
  .public .credPage .diploma-card .about {
    inset: auto 0 -10px auto;
    position: absolute;
  }
}
@media (max-width: 600px) {
  .ach-page .cards-grid > .store-card {
    width: 100%;
  }
  .ach-detail .block dl.kv {
    grid-template-columns: 120px 1fr;
  }
  .ach-detail .json-tree .jt-head,
  .ach-detail .json-tree .jt-row {
    grid-template-columns: 120px 1fr;
  }
  .profile .kv {
    display: flex;
    flex-direction: column;
  }
  .profile .ginfo-list {
    grid-template-columns: 1fr;
  }
  .profile .ginfo-list li {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
  }
  .profile .ginfo-list li .v {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .ach-page .achievements-grid {
    grid-template-columns: auto;
  }
  .ach-detail-content .achievement-hero {
    padding: 24px 0;
  }
  .ach-detail-content .achievement-hero .hero-actions {
    flex-direction: column;
  }
  .ach-detail-content .hero-meta {
    width: 100%;
  }
  .ach-detail .ginfo .ginfo-list li {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
  }
  .ach-detail .ginfo .ginfo-list li .v {
    grid-column-start: 1;
    grid-column-end: 3;
  }
  .ach-detail .right .summary .sharebox {
    display: block;
  }
  .wallet-layout .content .surface-topbar .top-tools .detail-toolbar .sharebox {
    display: none;
  }
  .detail-toolbar .sharebox {
    display: none;
  }
}
@media (max-width: 360px) {
  .login-card {
    padding: 22px;
  }
  .diploma-card {
    flex-direction: column;
  }
  .diploma-card .dc-hero {
    padding: 5px 0;
  }
  .diploma-card .dc-hero img {
    max-height: 60px;
  }
  .diploma-card .dc-actions {
    flex-direction: column;
  }
  .ach-detail .kv-table .kv {
    grid-template-columns: 1fr;
  }
  .ach-detail .kv-table .kv .k {
    grid-row: 1;
  }
  .ach-detail .kv-table .kv .v {
    grid-row: 2;
  }
  .ach-detail .json-tree .jt-row,
  .ach-detail .json-tree .jt-head {
    grid-template-columns: 1fr;
  }
  .ach-detail .json-tree .jt-row .jt-key,
  .ach-detail .json-tree .jt-head .jt-key,
  .ach-detail .json-tree .jt-row div:first-child,
  .ach-detail .json-tree .jt-head div:first-child {
    grid-row: 1;
  }
  .ach-detail .json-tree .jt-row .jt-key,
  .ach-detail .json-tree .jt-head .jt-key {
    padding-left: 0;
  }
  .ach-detail .json-tree .jt-row .jt-val,
  .ach-detail .json-tree .jt-head .jt-val,
  .ach-detail .json-tree .jt-row div:last-child,
  .ach-detail .json-tree .jt-head div:last-child {
    grid-row: 2;
    font-weight: 900;
    padding-left: 14px;
  }
  .ach-detail .json-tree .jt-row .jt-val,
  .ach-detail .json-tree .jt-head .jt-val {
    padding-left: calc(var(--depth) * 14px + 15px) !important;
  }
  .wallet-layout .content .surface-panel {
    padding: 0;
  }
}
@media (max-width: 350px) {
  .wallet-layout .content .surface-panel {
    padding: 0;
  }
}
/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .rail-toggle .rail-toggle-icon,
  .rail-toggle .rail-toggle-icon::before,
  .rail-toggle .rail-toggle-icon::after {
    transition: none;
  }
}
.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin: 0 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background: var(--brand-glass, #f8fafc);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.install-banner .install-copy strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--brand-text, #0f172a);
}
.install-banner .install-copy p {
  margin: 0;
  color: var(--brand-muted, #475569);
}
.install-banner .install-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.install-banner .btn {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .install-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .install-banner .install-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
.ios-install-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(3px);
}
.ios-install-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 540px);
  z-index: 1401;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: radial-gradient(220px 160px at 100% -10%, rgba(59, 130, 246, 0.22), transparent 65%), radial-gradient(260px 180px at -10% 100%, rgba(16, 185, 129, 0.18), transparent 65%), #ffffff;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.35);
  padding: 22px 22px 18px;
}
.ios-install-modal .ios-install-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ios-install-modal .ios-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(16, 185, 129, 0.16));
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.ios-install-modal .ios-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-size: 18px;
  cursor: pointer;
}
.ios-install-modal h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}
.ios-install-modal .ios-install-lead {
  margin: 0 0 16px;
  color: #475569;
  font-size: 15px;
  line-height: 1.35;
}
.ios-install-modal .ios-install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.ios-install-modal .ios-install-steps li {
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.75);
}
.ios-install-modal .ios-install-steps .step-index {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, #2563eb, #0ea5e9);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}
.ios-install-modal .ios-install-steps strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 3px;
}
.ios-install-modal .ios-install-steps p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}
.ios-install-modal .ios-install-steps .step-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  color: #1e293b;
  font-weight: 800;
  margin-top: 2px;
}
.ios-install-modal .ios-install-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
.ios-install-modal .btn.ios-primary {
  min-width: 140px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32);
}
@media (max-width: 640px) {
  .ios-install-modal {
    width: calc(100vw - 16px);
    border-radius: 18px;
    padding: 16px 14px 14px;
  }
  .ios-install-modal h3 {
    font-size: 20px;
  }
  .ios-install-modal .ios-install-steps li {
    grid-template-columns: 30px 1fr;
  }
  .ios-install-modal .ios-install-steps .step-icon {
    display: none;
  }
  .ios-install-modal .ios-install-actions {
    justify-content: stretch;
  }
  .ios-install-modal .ios-install-actions .btn.ios-primary {
    width: 100%;
  }
}
