/* Estilos base */

.bf-sticky-note {
  position: fixed;
  z-index: 9999;
  background: #ffe66a;
  color: #222;
  padding: 16px 18px 18px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

/* Estado visible */
.bf-sticky-note.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Layout: Nota flotante en esquina */
.bf-sticky-note.bf-layout-note {
  right: 20px;
  bottom: 20px;
  max-width: 320px;
}

/* Layout: Barra inferior completa */
.bf-sticky-note.bf-layout-bar {
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botón cerrar */

.bf-sticky-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}

.bf-sticky-close:hover {
  color: #000;
}

/* Contenido */

.bf-sticky-content {
  text-align: left;
}

.bf-sticky-note.bf-layout-bar .bf-sticky-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
}

.bf-sticky-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bf-sticky-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
}

/* En modo barra, organizamos mejor el texto */
.bf-sticky-note.bf-layout-bar .bf-sticky-text {
  margin: 0;
}

/* Botón CTA */

.bf-sticky-btn {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #111;
  color: #fff;
  border-radius: 999px;
  border: 1px solid #111;
  white-space: nowrap;
}

.bf-sticky-btn:hover {
  background: #fff;
  color: #111;
}

/* Responsive */

@media (max-width: 768px) {

  .bf-sticky-note.bf-layout-note {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .bf-sticky-note.bf-layout-bar .bf-sticky-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .bf-sticky-note.bf-layout-bar .bf-sticky-btn {
    width: 100%;
    text-align: center;
  }
}
