/* ============================================================
   Factor Partido · Follow Layer Hotfix v1.1
   Botón Seguir visible y robusto.
   ============================================================ */

.fp-follow-button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  border:1px solid rgba(0,212,232,.20);
  background:rgba(0,212,232,.07);
  color:var(--cyan,#00d4e8);
  border-radius:15px;
  padding:9px 12px;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
  text-decoration:none;
}

.fp-follow-button:hover,
.fp-follow-button.active{
  color:#001018;
  background:var(--cyan,#00d4e8);
  border-color:var(--cyan,#00d4e8);
}

.fp-follow-inline-fallback{
  margin:10px 0;
}

.fp-follow-floating-save{
  position:fixed;
  left:86px;
  bottom:22px;
  z-index:10086;
  min-height:48px;
  border-radius:18px;
  border:1px solid rgba(0,212,232,.22);
  background:
    radial-gradient(circle at 30% 20%,rgba(0,212,232,.22),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,.10);
  cursor:pointer;
  font-weight:950;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
}

.fp-follow-floating-save.active{
  background:var(--cyan,#00d4e8);
  color:#001018;
  border-color:var(--cyan,#00d4e8);
}

.fp-follow-drawer-btn{
  position:fixed;
  right:22px;
  bottom:90px;
  z-index:10085;
  min-width:52px;
  height:52px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(circle at 30% 20%,rgba(34,197,94,.22),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(34,197,94,.10);
  cursor:pointer;
  font-weight:950;
  display:none;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.fp-follow-drawer-btn.show{display:flex;}

.fp-follow-drawer-btn small{
  min-width:18px;
  height:18px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--cyan,#00d4e8);
  color:#001018;
  font-size:10px;
  font-weight:950;
}

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

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

.fp-follow-panel{
  position:fixed;
  right:18px;
  top:50%;
  z-index:10390;
  width:min(430px,calc(100vw - 28px));
  max-height:78vh;
  transform:translateY(-48%) translateX(18px) scale(.98);
  opacity:0;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(circle at 6% 0%,rgba(0,212,232,.16),transparent 34%),
    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);
  overflow:hidden;
  transition:opacity .18s ease, transform .18s ease;
}

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

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

.fp-follow-head 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:7px;
}

.fp-follow-head 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-follow-head h2{
  margin:0 0 7px;
  color:#f8fafc;
  font-family:var(--font-h,system-ui);
  font-size:27px;
  line-height:1;
}

.fp-follow-head p{
  margin:0;
  color:#9fb0c8;
  line-height:1.45;
  font-size:12px;
}

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

.fp-follow-list{
  padding:13px;
  overflow:auto;
  max-height:calc(78vh - 124px);
  display:grid;
  gap:9px;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,212,232,.34) transparent;
}

.fp-follow-item{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.035);
  border-radius:17px;
  padding:10px;
  color:#f8fafc;
  text-decoration:none;
}

.fp-follow-item:hover{
  border-color:rgba(0,212,232,.25);
  background:rgba(0,212,232,.07);
}

.fp-follow-item-icon{
  width:38px;
  height:38px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,212,232,.08);
  border:1px solid rgba(0,212,232,.16);
}

.fp-follow-item strong{
  display:block;
  color:#f8fafc;
  font-size:12px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.fp-follow-item small{
  display:block;
  color:#8fa2bc;
  font-size:10px;
  margin-top:3px;
}

.fp-follow-remove{
  width:30px;
  height:30px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.04);
  color:#9fb0c8;
  cursor:pointer;
}

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

.fp-follow-empty strong{
  display:block;
  color:#f8fafc;
  margin-bottom:5px;
}

.fp-follow-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  z-index:10410;
  transform:translateX(-50%);
  background:rgba(7,11,19,.96);
  color:#f8fafc;
  border:1px solid rgba(0,212,232,.22);
  border-radius:999px;
  padding:10px 14px;
  font-size:12px;
  font-weight:900;
  box-shadow:0 18px 40px rgba(0,0,0,.30);
}

@media(max-width:760px){
  .fp-follow-button{
    width:auto!important;
    min-height:38px;
    padding:8px 10px;
  }

  .fp-follow-floating-save{
    left:76px;
    bottom:calc(88px + env(safe-area-inset-bottom,0px));
    min-height:44px;
    padding:0 12px;
    border-radius:16px;
  }

  .fp-follow-drawer-btn{
    right:12px;
    bottom:calc(146px + env(safe-area-inset-bottom,0px));
    width:50px;
    height:50px;
    border-radius:18px;
  }

  .fp-follow-panel{
    top:auto;
    right:10px;
    left:10px;
    width:auto;
    bottom:calc(10px + env(safe-area-inset-bottom,0px));
    max-height:82vh;
    border-radius:24px;
    transform:translateY(18px) scale(.98);
  }

  .fp-follow-panel.open{
    transform:translateY(0) scale(1);
  }

  body.fp-penca-page .fp-follow-drawer-btn,
  body.fp-admin-page .fp-follow-drawer-btn,
  body.fp-penca-page .fp-follow-floating-save,
  body.fp-admin-page .fp-follow-floating-save,
  body.fp-penca-page .fp-follow-panel,
  body.fp-admin-page .fp-follow-panel,
  body.fp-penca-page .fp-follow-backdrop,
  body.fp-admin-page .fp-follow-backdrop{
    display:none!important;
  }
}
