/* =========================================================
   Wikifishdia — Formulario de sugerencias de la comunidad
   Se carga en TODO el sitio (no solo en las páginas del plugin), porque
   el botón flotante y el popup deben poder abrirse desde cualquier lugar.
   ========================================================= */

.wkf-floating-wrap{
  position: fixed;
  bottom: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
}
.wkf-floating-wrap--right{ right: 24px; align-items: flex-end; }
.wkf-floating-wrap--left{ left: 24px; align-items: flex-start; }

.wkf-floating-btn{
  position: relative;
  width: 100px !important;
  height: 100px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: block;
  line-height: 0;
  cursor: pointer;
}
.wkf-floating-btn-img{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px !important;
  height: 90px !important;
  max-width: none !important;
  object-fit: contain;
  display: block;
  transition: width .15s ease, height .15s ease, opacity .15s ease;
}
.wkf-floating-btn-img--hover{ opacity: 0; }
.wkf-floating-btn:hover .wkf-floating-btn-img--default{ opacity: 0; }
.wkf-floating-btn:hover .wkf-floating-btn-img--hover{ opacity: 1; width: 100px !important; height: 100px !important; }

.wkf-floating-bubble{
  position: relative;
  max-width: 150px;
  background: #fff;
  color: #0c0d10;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  padding: 14px 30px 14px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(20,20,40,.22);
  margin-bottom: 10px;
  cursor: pointer;
}
.wkf-floating-bubble p{ margin: 0; }
.wkf-floating-bubble::after{
  content: '';
  position: absolute;
  bottom: -6px;
  width: 13px;
  height: 13px;
  background: #fff;
  transform: rotate(45deg);
}
.wkf-floating-wrap--right .wkf-floating-bubble::after{ right: 36px; }
.wkf-floating-wrap--left .wkf-floating-bubble::after{ left: 36px; }
.wkf-floating-bubble-close{
  position: absolute;
  top: 6px;
  right: 12px;
  width: 20px;
  height: 20px;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9aa5;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease;
}
.wkf-floating-bubble-close:hover{ color: #50579F; }
.wkf-floating-bubble.is-hidden{ display: none; }

.wkf-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'Outfit', system-ui, sans-serif;
}
.wkf-modal.is-open{ display: flex; }
.wkf-modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(12,13,16,.6);
}
.wkf-modal-dialog{
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 28px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.wkf-modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0 !important;
  padding: 0;
  border-radius: 50%;
  background: #f7f7f9 !important;
  color: #50579F !important;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.wkf-modal-dialog h3{
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 700;
  color: #0c0d10;
  padding-right: 24px;
}
.wkf-form{ display: flex; flex-direction: column; gap: 16px; }
.wkf-honeypot{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wkf-field{ display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: #0c0d10; }
.wkf-field input,
.wkf-field select,
.wkf-field textarea{
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: #525252;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #e7e7ec;
  background: #fff;
}
.wkf-field textarea{ resize: vertical; min-height: 90px; }
.wkf-field input:focus,
.wkf-field select:focus,
.wkf-field textarea:focus{ outline: 2px solid #50579F; outline-offset: 1px; }
.wkf-submit{
  margin-top: 4px;
  background: #50579F !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s ease;
}
.wkf-submit:hover{ background: #3c4179 !important; }
.wkf-submit:disabled{ opacity: .6; cursor: default; }
.wkf-form-message{
  margin: 0;
  font-size: 13px;
  min-height: 18px;
}
.wkf-form-message.is-success{ color: #3f8a5b; }
.wkf-form-message.is-error{ color: #b2453a; }

/* -------------------- Tarjeta CTA (archivos + Aprende en Elementor) -------------------- */
.wkf-cta-box{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.wkf-cta-box .wkf-cta-text{
  margin: 0;
  color: #fff;
  font-size: 14px !important;
  font-weight: 400 !important;
  font-family: 'Outfit', system-ui, sans-serif;
}
.wkf-cta-box .wkf-cta-btn{
  background: #F0B814;
  color: #0c0d10;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.wkf-cta-box .wkf-cta-btn:hover{ background: #d9a411; transform: translateY(-1px); }

@media (max-width: 620px){
  .wkf-floating-wrap{ bottom: 16px; }
  .wkf-floating-wrap--right{ right: 16px; }
  .wkf-floating-wrap--left{ left: 16px; }
  .wkf-floating-btn{ width: 78px !important; height: 78px !important; }
  .wkf-floating-btn-img{ width: 70px !important; height: 70px !important; }
  .wkf-floating-btn:hover .wkf-floating-btn-img--hover{ width: 78px !important; height: 78px !important; }
  .wkf-floating-bubble{ max-width: 170px; font-size: 13px; padding: 12px 26px 12px 14px; }
  .wkf-modal-dialog{ padding: 28px 20px 22px; }
}
