/* ============================================================================
   JPCONNECT — Design System: Dark Tech Terminal
   Centro de conexiones aplicaciones fullscreencode.
   Fondo oscuro profundo, conexiones vivas por app y tipografía moderna de alta precisión.
   ============================================================================ */

:root {
  /* Paleta Base Oscura */
  --jp-bg:           #080C14;
  --jp-surface:      #101624;
  --jp-surface-sub:  #161F33;
  --jp-surface-mute: #1D2840;
  --jp-ink:          #F8FAFC;
  --jp-ink-sub:      #E2E8F0;
  --jp-muted:        #94A3B8;
  --jp-faint:        #64748B;

  /* Bordes Técnicos */
  --jp-border:       rgba(255, 255, 255, 0.08);
  --jp-border-hover: rgba(255, 255, 255, 0.25);
  --jp-border-focus: #00D2FF;

  /* Tipografías */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  background-color: var(--jp-bg) !important;
  color-scheme: dark !important;
  color: var(--jp-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: transparent !important;
  color: var(--jp-ink);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.jp-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Canvas de jpshadereditor (include.js) */
#jpsi-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  pointer-events: none !important;
  display: block !important;
  opacity: 1 !important;
  background-color: #080C14 !important;
}

.jp-offscreen {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 900px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   BARRA SUPERIOR (HEADER)
   ══════════════════════════════════════════════════════════════════════════ */
.jp-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 22, 36, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--jp-border);
}

.jp-top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.jp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jp-wordmark-wrap {
  display: flex;
  flex-direction: column;
}

.jp-wordmark {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  line-height: 1.1;
}

.jp-wordmark b {
  color: #00D2FF;
}

.jp-brand-subtitle {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jp-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Acciones en Header */
.jp-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jp-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--jp-surface);
  color: var(--jp-ink);
  border: 1px solid var(--jp-border);
  transition: all 0.18s ease;
}

.jp-btn:hover {
  background: var(--jp-surface-sub);
  border-color: var(--jp-border-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.jp-btn-primary {
  background: #00D2FF;
  color: #080C14;
  border-color: #00D2FF;
  font-weight: 800;
}

.jp-btn-primary:hover {
  background: #38BDF8;
  border-color: #38BDF8;
  color: #080C14;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO / TÍTULO PRINCIPAL (JPCONNECT)
   ══════════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════════════
   SOLAPAS — los botones viven en el MENÚ DE NAVEGACIÓN (header) y el contenido
   de las 3 secciones cae en un contenedor con fondo acá abajo.
   ══════════════════════════════════════════════════════════════════════════ */
.jp-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

/* Contenedor con fondo de las 3 secciones (antes cada panel traía su propia caja) */
.jp-tabs-section {
  margin: 28px 0 36px;
  padding: 22px;
  /* Cristal: mismo lenguaje que el header, deja ver el shader de fondo */
  background: rgba(10, 14, 22, 0.55);
  backdrop-filter: blur(11px) saturate(120%);
  -webkit-backdrop-filter: blur(11px) saturate(120%);
  border: 1px solid var(--jp-border);
  border-radius: 14px;
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.5);
}

.jp-tab {
  appearance: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--jp-muted);
  padding: 8px 14px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.jp-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.jp-tab[aria-selected="true"] {
  color: #00D2FF;
  background: rgba(0, 210, 255, 0.10);
  border-color: rgba(0, 210, 255, 0.40);
}

/* El panel ya no trae caja: la caja es el .jp-tabs-section */
.jp-panel {
  padding: 4px 0 0;
}

/* MIS CREACIONES: acá la caja la pone el .jp-tabs-section (una sola).
   El módulo heredado traía su propio .glass → quedaba caja dentro de caja.
   Se aplana el contenido y se saca el relleno extra del panel. */
#tab-creations {
  padding: 0;
}

#creationsBody .glass {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.jp-panel[hidden] {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   MAPA VECTORIAL DE CONEXIONES (SVG OSCURO)
   ══════════════════════════════════════════════════════════════════════════ */
.jp-metro-section {
  margin: 36px 0;
}

.jp-metro-card {
  background: rgba(16, 22, 36, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--jp-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.jp-metro-svg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.jp-line-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 24;
  cursor: pointer;
  pointer-events: stroke;
}

.jp-track-branch {
  transition: opacity 0.25s ease;
}

.jp-track-branch.is-dimmed {
  opacity: 0.2;
}

.jp-track-branch.is-active .jp-track-line {
  stroke-width: 4.5;
  filter: drop-shadow(0 0 10px currentColor);
}

.jp-station-node {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.jp-station-node.is-dimmed {
  opacity: 0.2;
}

.jp-station-node.is-active {
  transform: scale(1.18);
}

.jp-station-node.is-active .jp-station-ring {
  filter: drop-shadow(0 0 12px currentColor);
}

.jp-lbl-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  fill: #F8FAFC;
  letter-spacing: 0.01em;
}

.jp-hub-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 900;
  fill: #FFFFFF;
  letter-spacing: 0.14em;
}

/* ══════════════════════════════════════════════════════════════════════════
   APLICACIONES (TARJETAS LIMPIAS)
   ══════════════════════════════════════════════════════════════════════════ */
.jp-section-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--jp-border);
}

.jp-section-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.jp-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* La solapa APLICACIONES muestra las DESTACADAS en 3 columnas fijas (3 × 2) y,
   al abrir el botón, el resto con la misma grilla. Se rompe a 2 y 1 columna en
   pantallas chicas (media queries al final del archivo, tienen que ir después
   de la regla de .jp-apps-grid para ganarle). */
.jp-panel--apps .jp-apps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Botón «+» ARRIBA A LA IZQUIERDA del contenedor: revela el resto de las apps.
   Por defecto esas apps NO se muestran. */
.jp-apps-toggle {
  appearance: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  margin: 0 0 18px 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid var(--jp-border);
  border-radius: 10px;
  color: #00D2FF;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.jp-apps-toggle:hover {
  background: rgba(0, 210, 255, 0.16);
  border-color: #00D2FF;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.25);
}

.jp-apps-toggle-ico {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.jp-apps-resto {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--jp-border);
}

/* Captura real de la app, arriba de la ficha (public/img/apps/<id>.jpg).
   Los márgenes negativos la hacen sangrar hasta el borde de la tarjeta, que ya
   tiene overflow:hidden y radio, así que no hace falta recortarla. */
.jp-platform-shot {
  margin: -22px -22px 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0B0F19;
  border-bottom: 1px solid var(--jp-border);
}

.jp-platform-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.92;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.jp-platform-card:hover .jp-platform-shot img {
  opacity: 1;
  transform: scale(1.03);
}

.jp-platform-card {
  background: rgba(10, 14, 22, 0.55);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid var(--jp-border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease;
}

/* Tira lateral: BLANCA (antes usaba el color de cada app) */
.jp-platform-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #FFFFFF;
  opacity: 0.85;
}

/* Hover / realce: borde y glow BLANCOS (antes eran del color de la app) */
.jp-platform-card:hover,
.jp-platform-card.is-highlighted {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 34px -10px rgba(255, 255, 255, 0.22);
}

.jp-platform-body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.jp-platform-meta {
  display: flex;
  flex-direction: column;
}

.jp-platform-category {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--jp-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jp-platform-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 3px 0 0;
  letter-spacing: -0.01em;
}

.jp-platform-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--jp-muted);
  margin: 0 0 20px;
  flex: 1;
}

.jp-platform-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;                 /* entran dos botones: GitHub + Entrar */
  flex-wrap: wrap;
  border-top: 1px solid var(--jp-surface-sub);
  padding-top: 14px;
  margin-top: auto;
}

.jp-board-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--jp-surface-sub);
  color: #FFFFFF;
  border: 1px solid var(--jp-border);
  transition: all 0.18s ease;
}

.jp-board-btn:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #080C14;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
  transform: translateX(2px);
}

/* Botón de GitHub (sólo en las fichas con repo público): fantasma, al lado de
   «Entrar», con el mark inline para no depender de la fuente de iconos. */
.jp-board-btn--gh {
  padding: 8px 13px;
  background: transparent;
  color: var(--jp-text-dim, #A9B4C6);
  border: 1px solid var(--jp-surface-sub);
  text-decoration: none;
}

.jp-board-btn--gh .jp-gh-ico {
  width: 13px;
  height: 13px;
  transition: transform 0.18s ease;
}

.jp-board-btn--gh:hover {
  background: transparent;
  border-color: #FFFFFF;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
  transform: none;
}

.jp-board-btn--gh:hover .jp-gh-ico {
  transform: scale(1.12) rotate(-6deg);
}

.jp-arrow-ico {
  width: 12px;
  height: 12px;
  transition: transform 0.18s ease;
}

.jp-board-btn:hover .jp-arrow-ico {
  transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════════════════════
   TARJETAS DE AUTENTICACIÓN (LOGIN / REGISTRO) - TEMA OSCURO
   ══════════════════════════════════════════════════════════════════════════ */
.jp-auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.jp-boarding-pass {
  width: 100%;
  max-width: 440px;
  background: rgba(9, 13, 21, 0.62);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid var(--jp-border);
  border-radius: 14px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.jp-pass-header {
  background: #0B101A;
  color: #FFFFFF;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--jp-border);
}

.jp-pass-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jp-pass-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--jp-muted);
}

.jp-pass-body {
  padding: 28px 24px;
}

.jp-pass-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 4px;
}

.jp-pass-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--jp-muted);
  letter-spacing: 0.08em;
  margin: 0 0 24px;
}

.jp-form-group {
  margin-bottom: 18px;
}

.jp-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jp-ink-sub);
  margin-bottom: 6px;
}

.jp-input {
  width: 100%;
  background: #0B101A;
  border: 1px solid var(--jp-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #FFFFFF;
  transition: all 0.18s ease;
}

.jp-input:focus {
  outline: none;
  border-color: #00D2FF;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2);
}

.jp-input::placeholder {
  color: var(--jp-faint);
}

.jp-error-alert {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.3);
  color: #FF6B6B;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jp-error-alert.hidden {
  display: none;
}

.jp-submit-btn {
  width: 100%;
  background: #00D2FF;
  color: #080C14;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.jp-submit-btn:hover {
  background: #38BDF8;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════════
   OVERRIDES PARA EL MÓDULO HEREDADO DE PERFIL (fsc-profile.js)
   ══════════════════════════════════════════════════════════════════════════ */
.glass {
  background: rgba(10, 14, 22, 0.55) !important;
  border: 1px solid var(--jp-border) !important;
  border-radius: 10px !important;
  color: var(--jp-ink) !important;
  backdrop-filter: blur(10px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
}

.field, .input-field,
.glass input:not([type=checkbox]):not([type=radio]),
.glass select, .glass textarea {
  background: #0B101A !important;
  border: 1px solid var(--jp-border) !important;
  border-radius: 7px !important;
  color: #FFFFFF !important;
  padding: 10px 12px !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
}

.field:focus, .input-field:focus,
.glass input:focus, .glass textarea:focus {
  outline: none !important;
  border-color: #00D2FF !important;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2) !important;
}

.btn, .btn-primary, .btn-ghost {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: 7px !important;
  padding: 9px 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.btn-primary {
  background: #00D2FF !important;
  color: #080C14 !important;
  border: 1px solid #00D2FF !important;
  font-weight: 800 !important;
}

.btn-primary:hover {
  background: #38BDF8 !important;
  border-color: #38BDF8 !important;
}

.btn-ghost {
  background: var(--jp-surface-sub) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--jp-border) !important;
}

.pill, .glass .pill {
  font-family: var(--font-mono) !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  border: 1px solid var(--jp-border) !important;
  background: var(--jp-surface-sub) !important;
  color: var(--jp-ink-sub) !important;
}

.pill.gold, #pfRole.pill:not(.dim) {
  border-color: #00D2FF !important;
  color: #00D2FF !important;
  background: rgba(0, 210, 255, 0.1) !important;
}

#pfAvatar {
  border-radius: 10px !important;
  border: 2px solid var(--jp-border) !important;
  background: var(--jp-surface-sub) !important;
  color: #FFFFFF !important;
}

#fscProfile .text-white, #fscGate .text-white, #creationsBody .text-white {
  color: #FFFFFF !important;
}

#fscProfile .text-gray-300, #fscProfile .text-gray-400, #fscProfile .text-gray-500,
#fscGate .text-gray-400, #creationsBody .text-gray-400 {
  color: var(--jp-muted) !important;
}

#fscProfile .bg-white\/5, #creationsBody .bg-white\/5 {
  background: var(--jp-surface-sub) !important;
}

.fsc-tab {
  background: #0B101A !important;
  border: 1px solid var(--jp-border) !important;
  color: var(--jp-muted) !important;
  border-radius: 6px !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.fsc-tab.active {
  border-color: #00D2FF !important;
  color: #00D2FF !important;
  background: rgba(0, 210, 255, 0.1) !important;
}

.asset {
  background: var(--jp-surface) !important;
  border: 1px solid var(--jp-border) !important;
  border-radius: 8px !important;
}

.asset a {
  color: #00D2FF !important;
  font-weight: 700 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   PERFIL Y AVATAR BULLET-PROOF
   ══════════════════════════════════════════════════════════════════════════ */
#perfilBody > .glass,
#tab-perfil .glass {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#pfAvatar {
  width: 110px !important;
  height: 110px !important;
  min-width: 110px !important;
  min-height: 110px !important;
  max-width: 110px !important;
  max-height: 110px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(168, 85, 247, 0.2)) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  flex-shrink: 0 !important;
}

#pfAvatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: inherit !important;
}

#pfName {
  font-family: var(--font-sans) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #F8FAFC !important;
}

.field {
  background: rgba(8, 12, 20, 0.75) !important;
  border: 1px solid var(--jp-border) !important;
  border-radius: 8px !important;
  color: #F8FAFC !important;
  font-family: var(--font-sans) !important;
}

.field:focus {
  border-color: #00D2FF !important;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.25) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   PIE DE PÁGINA
   ══════════════════════════════════════════════════════════════════════════ */
.jp-foot {
  margin: 60px 0 36px;
  padding: 16px 22px;
  /* Mismo contenedor que el header: opacidad + blurreado */
  background: rgba(16, 22, 36, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--jp-border);
  border-radius: 14px;
  color: var(--jp-muted);
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.jp-foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1100px) {
  .jp-panel--apps .jp-apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .jp-apps-grid { grid-template-columns: 1fr; }
  .jp-panel--apps .jp-apps-grid { grid-template-columns: 1fr; }
  .jp-top-in { flex-wrap: wrap; row-gap: 10px; }
  .jp-nav-tabs { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .jp-foot { flex-direction: column; text-align: center; }
}

/* ============================================================
   LOGIN en blanco y negro (pedido del dueño): el wordmark y los botones
   en blanco/negro, sin azul. El contenedor de vidrio queda igual.
   Se aplica sólo con body.jp-mono (login.html), no al resto del portal.
   ============================================================ */
body.jp-mono {
  --jp-border-focus: #ffffff;
}
body.jp-mono .jp-submit-btn {
  background: #ffffff;
  color: #0b0f16;
  border: 1px solid #ffffff;
}
body.jp-mono .jp-submit-btn:hover {
  background: #e6eaf0;
  border-color: #e6eaf0;
  color: #0b0f16;
}
body.jp-mono .jp-submit-btn i { color: #0b0f16; }
body.jp-mono .jp-input:focus,
body.jp-mono .field:focus,
body.jp-mono .input-field:focus {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
}
body.jp-mono a,
body.jp-mono .jp-pass-logo span,
body.jp-mono .jp-pass-logo b,
body.jp-mono .jp-label { color: #ffffff; }
body.jp-mono a:hover { color: #cfd6e0; }
