/* ==========================================================================
   DUGUI SPACE — Sistema de Diseño Oficial «Dugui Cyber-Creator»
   Chasis Técnico CSP Nivel 3 Estricta · Fuentes Variables .woff2 100% Locales
   Cero CDNs · Cero Inline Scripts/Styles · Dark Glassmorphism & Bento Grids
   ========================================================================== */

/* 1. Tipografías Variables Locales (.woff2) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Design Tokens Oficiales «Dugui Cyber-Creator» */
:root {
  --bg-deep: #0B0D14;
  --surface-glass: rgba(18, 22, 36, 0.78);
  --surface-elevated: #181D2E;
  --accent-cyan: #00E5FF;
  --accent-purple: #A855F7;
  --accent-magenta: #D946EF;
  --ring-gradient: linear-gradient(135deg, #00E5FF 0%, #3B82F6 50%, #A855F7 100%);
  --text-primary: #F3F6FC;
  --text-muted: #8E98B0;
  --status-consolidated: #10B981;
  --status-wip: #F59E0B;
  --ease-cyber: cubic-bezier(0.16, 1, 0.3, 1);

  /* Tokens complementarios del sistema */
  --status-danger: #EF4444;
  --border-glass: rgba(243, 246, 252, 0.09);
  --border-glow-cyan: rgba(0, 229, 255, 0.36);
  --glow-cyan: 0 0 28px rgba(0, 229, 255, 0.18);
  --glow-purple: 0 0 28px rgba(168, 85, 247, 0.22);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.09), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.11), transparent 45%);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease-cyber), opacity 0.2s var(--ease-cyber);
}

a:hover {
  color: var(--accent-magenta);
}

.is-hidden {
  display: none !important;
}

.bento-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 24px 56px -16px rgba(0, 0, 0, 0.65), var(--glow-cyan);
}

.cyber-avatar-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 9999px;
  background: var(--ring-gradient);
  box-shadow: var(--glow-cyan), var(--glow-purple);
}

.cyber-avatar-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: var(--bg-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   Fase 3 — Accesibilidad WCAG AA y Mobile (≤390px)
   ========================================================================== */

/* Indicador de foco visible unificado: se muestra solo al navegar con
   teclado (Tab/Shift+Tab) y al emitir datos de wcag */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Clase de utilidad estándar para texto oculto visualmente (WCAG) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respeto del movimiento reducido declarado por el sistema operativo */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .status-dot-emerald {
    animation: none;
  }
}


/* === Dugui Space Universal Help Center & Guided Tour (CSP Level 3 Strict) === */
.dugui-help-hidden {
  display: none !important;
}

.dugui-help-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  background: rgba(18, 22, 36, 0.85);
  color: #F3F6FC;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dugui-help-trigger:hover {
  border-color: #00E5FF;
  background: rgba(0, 229, 255, 0.12);
}

.dugui-help-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.18);
  color: #00E5FF;
  font-size: 0.74rem;
  font-weight: 800;
}

.dugui-help-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(86vh, 760px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 20px;
  background: #111625;
  color: #F3F6FC;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.78);
}

.dugui-help-dialog::backdrop {
  background: rgba(6, 8, 15, 0.78);
  backdrop-filter: blur(6px);
}

.dugui-help-shell {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: min(84vh, 740px);
  overflow-y: auto;
}

.dugui-help-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(142, 152, 176, 0.18);
}

.dugui-help-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00E5FF;
  margin-bottom: 0.3rem;
}

.dugui-help-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: #F3F6FC;
  margin: 0;
}

.dugui-help-sub {
  font-size: 0.88rem;
  color: #8E98B0;
  margin: 0.3rem 0 0;
}

.dugui-help-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(142, 152, 176, 0.25);
  background: rgba(24, 29, 46, 0.9);
  color: #F3F6FC;
  cursor: pointer;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.dugui-help-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .dugui-help-options-grid {
    grid-template-columns: 1fr;
  }
}

.dugui-help-option-card {
  text-align: left;
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(142, 152, 176, 0.22);
  background: #181D2E;
  color: #F3F6FC;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dugui-help-option-card:hover {
  border-color: #00E5FF;
  transform: translateY(-2px);
}

.dugui-help-option-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.14);
  color: #00E5FF;
}

.dugui-help-option-badge-purple {
  background: rgba(168, 85, 247, 0.18);
  color: #D8B4FE;
}

.dugui-help-option-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #F3F6FC;
}

.dugui-help-option-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #8E98B0;
}

.dugui-help-option-cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #00E5FF;
}

.dugui-help-manual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.dugui-help-back-btn,
.dugui-help-tour-inline-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(142, 152, 176, 0.28);
  background: #181D2E;
  color: #F3F6FC;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.dugui-help-tour-inline-btn {
  border-color: rgba(0, 229, 255, 0.4);
  color: #00E5FF;
}

.dugui-help-manual-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dugui-help-manual-card {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: #181D2E;
  border: 1px solid rgba(142, 152, 176, 0.16);
}

.dugui-help-manual-h4 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #00E5FF;
}

.dugui-help-manual-p {
  margin: 0 0 0.45rem;
  font-size: 0.87rem;
  line-height: 1.55;
  color: #D4DCF0;
}

.dugui-help-manual-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #8E98B0;
}

.dugui-tour-highlight {
  outline: 2px solid #00E5FF !important;
  outline-offset: 6px !important;
  box-shadow: 0 0 0 6px rgba(0, 229, 255, 0.18), 0 0 28px rgba(0, 229, 255, 0.32) !important;
  border-radius: 12px;
  transition: outline 0.2s ease, box-shadow 0.2s ease;
}

.dugui-tour-coachmark {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  width: min(390px, calc(100vw - 2rem));
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: #111625;
  border: 1.5px solid #00E5FF;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.82), 0 0 24px rgba(0, 229, 255, 0.22);
  color: #F3F6FC;
}

.dugui-tour-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dugui-tour-counter {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #00E5FF;
}

.dugui-tour-close-btn {
  border: none;
  background: transparent;
  color: #8E98B0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.dugui-tour-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #F3F6FC;
}

.dugui-tour-desc {
  margin: 0 0 0.9rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #C7D0E4;
}

.dugui-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.dugui-tour-nav-btn {
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(142, 152, 176, 0.3);
  background: #181D2E;
  color: #F3F6FC;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.dugui-tour-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dugui-tour-nav-btn-primary {
  background: #00E5FF;
  border-color: #00E5FF;
  color: #081018;
}


/* ==========================================================================
   Dugui Space · Identidad y Accesos — Componentes UI «Dugui Cyber-Creator»
   ========================================================================== */

.sso-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  background: rgba(11, 13, 20, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glass);
}

.sso-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.sso-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.sso-brand-link:hover {
  color: var(--accent-cyan);
}

.sso-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glow-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.sso-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.sso-nav-pill {
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.sso-nav-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.sso-nav-pill-cyan {
  border-color: var(--border-glow-cyan);
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
}

.sso-btn-logout {
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.14);
  color: #FCA5A5;
  font-size: 0.8rem;
  font-weight: 700;
}

.sso-btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #FEE2E2;
}

.sso-shell {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.sso-card {
  width: 100%;
  max-width: 480px;
  padding: 2.15rem 2rem;
  position: relative;
}

.sso-card-wide {
  max-width: 580px;
}

.sso-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.sso-eyebrow {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.sso-title {
  margin-top: 0.35rem;
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sso-subtitle {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sso-rp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glow-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.sso-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.32rem;
  margin-bottom: 1.35rem;
  border-radius: 13px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glass);
}

.sso-tabs-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .sso-tabs-three {
    grid-template-columns: 1fr;
  }
  .sso-card {
    padding: 1.5rem 1.2rem;
  }
}

.sso-tab-btn {
  padding: 0.6rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-cyber);
}

.sso-tab-btn:hover {
  color: var(--text-primary);
}

.sso-tab-btn[aria-selected="true"] {
  background: rgba(0, 229, 255, 0.14);
  border-color: var(--border-glow-cyan);
  color: var(--accent-cyan);
}

.sso-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sso-grid-doc {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .sso-grid-2,
  .sso-grid-doc {
    grid-template-columns: 1fr;
  }
}

.sso-field {
  margin-bottom: 0.95rem;
}

.sso-label {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sso-input-row {
  display: flex;
  gap: 0.5rem;
}

.sso-input {
  width: 100%;
  padding: 0.75rem 0.92rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease-cyber), box-shadow 0.2s var(--ease-cyber);
}

.sso-input-readonly {
  opacity: 0.68;
  cursor: not-allowed;
}

.sso-input-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sso-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16);
}

.sso-btn-primary {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.85rem 1.15rem;
  border: none;
  border-radius: 12px;
  background: var(--ring-gradient);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease-cyber), opacity 0.2s var(--ease-cyber);
}

.sso-btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.sso-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.sso-btn-secondary {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-glow-cyan);
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent-cyan);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sso-link-btn {
  border: none;
  background: transparent;
  color: var(--accent-cyan);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.sso-link-btn:hover {
  color: var(--accent-magenta);
  text-decoration: underline;
}

.sso-alert {
  margin-bottom: 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.sso-alert-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #FCA5A5;
}

.sso-alert-success {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #6EE7B7;
}

.sso-preview-box {
  margin-bottom: 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-size: 0.83rem;
}

.sso-preview-title {
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.sso-preview-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sso-footer {
  margin-top: 1.35rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Vista /perfil — Mi Perfil Unificado & Accesos
   ========================================================================== */

.sso-profile-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.sso-profile-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .sso-profile-grid {
    grid-template-columns: 1fr;
  }
}

.sso-profile-card {
  padding: 1.85rem;
}

.sso-profile-hero {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-glass);
}

.sso-profile-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 0.2rem;
}

.sso-profile-email {
  font-size: 0.86rem;
  color: var(--accent-cyan);
  margin-top: 0.15rem;
}

.sso-profile-inst {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.sso-profile-block {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-glass);
}

.sso-profile-hero + .sso-profile-block {
  border-top: none;
  padding-top: 0;
}

.sso-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.sso-block-title {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.sso-block-head .sso-block-title {
  margin-bottom: 0;
}

.sso-inline-link {
  font-size: 0.8rem;
  font-weight: 700;
}

.sso-roles-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sso-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid var(--border-glow-cyan);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
}

.sso-QuickGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

@media (max-width: 520px) {
  .sso-QuickGrid {
    grid-template-columns: 1fr;
  }
}

.sso-ecosystem-btn {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sso-ecosystem-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.sso-ecosystem-btn strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.sso-ecosystem-btn span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sso-ecosystem-btn-accent {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.1);
}

.sso-gov-box {
  margin-top: 1.1rem;
}

.sso-gov-box .sso-eyebrow {
  margin-bottom: 0.55rem;
}

.sso-cohort-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sso-cohort-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: 11px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-glass);
  font-size: 0.83rem;
}

.sso-cohort-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sso-muted-note {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sso-card-head {
  margin-bottom: 1.25rem;
}

.sso-section-h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 0.25rem;
}
