/* ============================================================
   Factor Partido · Global Command Center v1
   Navegación inteligente global: Ctrl+K / botón FP.
   ============================================================ */

.fp-gcc-launcher{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:10090;
  width:56px;
  height:56px;
  border-radius:20px;
  border:1px solid rgba(0,212,232,.28);
  background:
    radial-gradient(circle at 30% 20%,rgba(0,212,232,.30),transparent 45%),
    linear-gradient(145deg,rgba(11,18,32,.98),rgba(7,11,19,.94));
  color:#f8fafc;
  box-shadow:0 20px 48px rgba(0,0,0,.34),0 0 34px rgba(0,212,232,.13);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-family:var(--font-h,system-ui);
  font-weight:950;
  letter-spacing:.04em;
}

.fp-gcc-launcher span{
  position:relative;
  z-index:2;
}

.fp-gcc-launcher:before{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:24px;
  border:1px solid rgba(0,212,232,.13);
  animation:fpGccPulse 2.4s ease-in-out infinite;
}

@keyframes fpGccPulse{
  0%,100%{opacity:.22;transform:scale(.96)}
  50%{opacity:.75;transform:scale(1.04)}
}

.fp-gcc-backdrop{
  position:fixed;
  inset:0;
  z-index:10100;
  background:rgba(2,6,12,.72);
  backdrop-filter:blur(16px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
}

.fp-gcc-backdrop.open{
  opacity:1;
  pointer-events:auto;
}

.fp-gcc-panel{
  position:fixed;
  left:50%;
  top:8vh;
  z-index:10110;
  width:min(760px,calc(100vw - 28px));
  max-height:min(78vh,760px);
  transform:translateX(-50%) translateY(-14px) scale(.98);
  opacity:0;
  pointer-events:none;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(circle at 6% 0%,rgba(0,212,232,.16),transparent 32%),
    radial-gradient(circle at 100% 20%,rgba(34,197,94,.08),transparent 32%),
    linear-gradient(180deg,rgba(11,18,32,.98),rgba(7,11,19,.97));
  border-radius:28px;
  box-shadow:0 34px 100px rgba(0,0,0,.55),0 0 60px rgba(0,212,232,.12);
  transition:opacity .18s ease,transform .18s ease;
}

.fp-gcc-panel.open{
  opacity:1;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0) scale(1);
}

.fp-gcc-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.fp-gcc-brand{
  min-width:0;
}

.fp-gcc-brand span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--cyan,#00d4e8);
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.10em;
  margin-bottom:5px;
}

.fp-gcc-brand span:before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--cyan,#00d4e8);
  box-shadow:0 0 0 6px rgba(0,212,232,.10);
}

.fp-gcc-brand strong{
  display:block;
  color:#f8fafc;
  font-family:var(--font-h,system-ui);
  font-size:26px;
  line-height:1;
}

.fp-gcc-close{
  width:38px;
  height:38px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  color:#f8fafc;
  cursor:pointer;
  font-size:18px;
}

.fp-gcc-search{
  padding:14px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.fp-gcc-search label{
  display:block;
  color:#8fa2bc;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.10em;
  margin-bottom:8px;
}

.fp-gcc-searchbox{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  border:1px solid rgba(0,212,232,.18);
  background:rgba(0,212,232,.055);
  border-radius:18px;
  padding:10px 12px;
}

.fp-gcc-searchbox input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#f8fafc;
  font-size:16px;
}

.fp-gcc-searchbox input::placeholder{
  color:#64748b;
}

.fp-gcc-shortcut{
  color:#8fa2bc;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.04);
  border-radius:10px;
  padding:5px 8px;
  font-size:11px;
  font-weight:900;
}

.fp-gcc-body{
  max-height:calc(min(78vh,760px) - 155px);
  overflow:auto;
  padding:14px 18px 18px;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,212,232,.40) transparent;
}

.fp-gcc-section{
  margin-bottom:18px;
}

.fp-gcc-section:last-child{
  margin-bottom:0;
}

.fp-gcc-section h3{
  margin:0 0 9px;
  color:#8fa2bc;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.10em;
}

.fp-gcc-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}

.fp-gcc-item{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-height:64px;
  width:100%;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  border-radius:18px;
  color:#f8fafc;
  text-decoration:none;
  padding:10px;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}

.fp-gcc-item:hover,
.fp-gcc-item:focus{
  transform:translateY(-1px);
  border-color:rgba(0,212,232,.26);
  background:rgba(0,212,232,.075);
  outline:0;
}

.fp-gcc-icon{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:15px;
  background:rgba(0,212,232,.08);
  border:1px solid rgba(0,212,232,.16);
  font-size:20px;
}

.fp-gcc-item strong{
  display:block;
  color:#f8fafc;
  font-size:13px;
  line-height:1.2;
  margin-bottom:3px;
}

.fp-gcc-item small{
  display:block;
  color:#8fa2bc;
  font-size:11px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.fp-gcc-go{
  color:var(--cyan,#00d4e8);
  font-weight:950;
}

.fp-gcc-empty{
  display:none;
  color:#9fb0c8;
  border:1px dashed rgba(255,255,255,.12);
  border-radius:18px;
  padding:16px;
  text-align:center;
}

.fp-gcc-empty.show{
  display:block;
}

.fp-reader-mode .note-content,
.fp-reader-mode .fp-editorial-disclaimer,
.fp-reader-mode .fp-analysis-box{
  max-width:820px!important;
}

.fp-reader-mode .note-content{
  font-size:17px!important;
  line-height:1.9!important;
}

.fp-reader-mode .page-hero{
  padding-bottom:24px!important;
}

@media(max-width:760px){
  .fp-gcc-launcher{
    right:12px;
    bottom:calc(86px + env(safe-area-inset-bottom,0px));
    width:50px;
    height:50px;
    border-radius:18px;
  }

  .fp-gcc-panel{
    top:auto;
    bottom:calc(10px + env(safe-area-inset-bottom,0px));
    width:calc(100vw - 20px);
    max-height:82vh;
    border-radius:24px;
    transform:translateX(-50%) translateY(18px) scale(.98);
  }

  .fp-gcc-panel.open{
    transform:translateX(-50%) translateY(0) scale(1);
  }

  .fp-gcc-head{
    padding:15px;
  }

  .fp-gcc-brand strong{
    font-size:22px;
  }

  .fp-gcc-search{
    padding:12px 15px;
  }

  .fp-gcc-body{
    padding:12px 15px 16px;
  }

  .fp-gcc-grid{
    grid-template-columns:1fr;
    gap:8px;
  }

  .fp-gcc-item{
    min-height:58px;
    border-radius:16px;
  }
}

body.fp-penca-page .fp-gcc-launcher,
body.fp-admin-page .fp-gcc-launcher,
body.fp-penca-page .fp-gcc-backdrop,
body.fp-admin-page .fp-gcc-backdrop,
body.fp-penca-page .fp-gcc-panel,
body.fp-admin-page .fp-gcc-panel{
  display:none!important;
}


/* ============================================================
   Hotfix v1.1 — evita choque con botón "volver arriba"
   ============================================================ */

/* Desktop: el Command Center queda a la izquierda y volver-arriba puede quedar a la derecha */
.fp-gcc-launcher{
  left:22px!important;
  right:auto!important;
  bottom:22px!important;
}

/* Mobile: se sube un poco y queda fijo a la izquierda, lejos del botón volver arriba/dock */
@media(max-width:760px){
  .fp-gcc-launcher{
    left:12px!important;
    right:auto!important;
    bottom:calc(142px + env(safe-area-inset-bottom,0px))!important;
    width:50px!important;
    height:50px!important;
  }
}

/* En pantallas muy pequeñas lo dejamos un poco más compacto */
@media(max-width:390px){
  .fp-gcc-launcher{
    bottom:calc(132px + env(safe-area-inset-bottom,0px))!important;
  }
}
